Skip to content

Instantly share code, notes, and snippets.

@Timrael
Created February 1, 2012 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Timrael/1716729 to your computer and use it in GitHub Desktop.
Save Timrael/1716729 to your computer and use it in GitHub Desktop.
Redmine plugin
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