lib/redmine_crm/settings.rb in redmine_crm-0.0.50 vs lib/redmine_crm/settings.rb in redmine_crm-0.0.51
- old
+ new
@@ -24,9 +24,11 @@
@settings_initialized
end
# Use apply instead attrs assign because it can rewrite other attributes
def apply=(values)
+ initialize_gem_settings unless @settings_initialized
+
Setting.plugin_redmine_crm = Setting.plugin_redmine_crm.merge(values)
end
def values
initialize_gem_settings unless @settings_initialized