Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.