Created
February 1, 2012 11:55
-
-
Save Timrael/1716729 to your computer and use it in GitHub Desktop.
Redmine plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redmine::Plugin.register :redmine_xxx do | |
settings :default => { 'default_tracker_for_new_issue' => Tracker.first.id } | |
end | |
# 'Setting.plugin_redmine_xxx' will output '"default_tracker_for_new_issue1"' | |
Redmine::Plugin.register :redmine_xxx do | |
first_tracker_id = Tracker.first.id | |
settings :default => { 'default_tracker_for_new_issue' => first_tracker_id } | |
end | |
# 'Setting.plugin_redmine_xxx' will output '{"default_tracker_for_new_issue"=>1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment