summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-05-30 23:00:22 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-05-30 23:00:22 +0000
commitfbfb34949677c41734531a552547fb216537999f (patch)
tree2c09d7849f6c347b6d5071106ab85d2aab5c3feb
parent211b13c9ec4de19556a9df42c40c6cb0bd10c3ee (diff)
downloadredmine-fbfb34949677c41734531a552547fb216537999f.tar.gz
redmine-fbfb34949677c41734531a552547fb216537999f.zip
Added Redmine::Info.issue to get links to specific issue numbers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2776 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/info.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/redmine/info.rb b/lib/redmine/info.rb
index 0e00e8b85..e9106c42d 100644
--- a/lib/redmine/info.rb
+++ b/lib/redmine/info.rb
@@ -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