summaryrefslogtreecommitdiffstats
path: root/lib/redmine/plugin.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-13 13:52:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-13 13:52:56 +0000
commitc31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b (patch)
tree459eb338daf1a88b8819b47a9ecb2d024426a7d6 /lib/redmine/plugin.rb
parentc93fccc84a939b14bd5d67d58514bd2ef58e4a08 (diff)
downloadredmine-c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b.tar.gz
redmine-c31f498ba6a21fd3e5ce7b9ba2f3b3cdc1b2e05b.zip
Code cleanup: implement Plugin#to_param for generating routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10995 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r--lib/redmine/plugin.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb
index ceb6d7097..e8eab3ef2 100644
--- a/lib/redmine/plugin.rb
+++ b/lib/redmine/plugin.rb
@@ -145,6 +145,10 @@ module Redmine #:nodoc:
File.join(self.class.public_directory, id.to_s)
end
+ def to_param
+ id
+ end
+
def assets_directory
File.join(directory, 'assets')
end