]> source.dussan.org Git - redmine.git/commitdiff
Added Redmine::Info.issue to get links to specific issue numbers.
authorEric Davis <edavis@littlestreamsoftware.com>
Sat, 30 May 2009 23:00:22 +0000 (23:00 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sat, 30 May 2009 23:00:22 +0000 (23:00 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2776 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/info.rb

index 0e00e8b8586d8fbb292910167031adbdd51d09be..e9106c42dce024e28a13db51b513e06770986ae4 100644 (file)
@@ -5,6 +5,11 @@ module Redmine
       def url; 'http://www.redmine.org/' end
       def help_url; 'http://www.redmine.org/guide' end
       def versioned_name; "#{app_name} #{Redmine::VERSION}" end
+
+      # Creates the url string to a specific Redmine issue
+      def issue(issue_id)
+        url + 'issues/' + issue_id.to_s
+      end
     end
   end
 end