Permalink
Browse files

One more patch to core, but this one is not cosmetic, it is a patch f…

…or settings
  • Loading branch information...
1 parent 91d9496 commit fd1cb0ba54f4e70c5e023317fe0c17a634a5f6b7 @Jehreg committed Mar 24, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 redmine-patches/20120324003-models-setting.patch
@@ -0,0 +1,13 @@
+diff --git a/app/models/setting.rb b/app/models/setting.rb
+index 5db7f67..497f1d7 100644
+--- a/app/models/setting.rb
++++ b/app/models/setting.rb
+@@ -76,6 +76,8 @@ class Setting < ActiveRecord::Base
+ next unless plugin.settings
+ @@available_settings["plugin_#{plugin.id}"] = {'default' => plugin.settings[:default], 'serialized' => true}
+ end
++ @@available_settings["plugin_timesheet_plugin"] = {'default' => {'list_size' => '5', 'precision' => '2', 'project_status' => 'active'},'serialized' => true}
++ @@available_settings["plugin_redmine_join_project"] = {'default' => {'list_size' => '5', 'precision' => '2', 'project_status' => 'active'},'serialized' => true}
+
+ validates_uniqueness_of :name
+ validates_inclusion_of :name, :in => @@available_settings.keys

0 comments on commit fd1cb0b

Please sign in to comment.