From dcf78780da73a269083e71cf5f84cb7626bd6ade Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 26 Sep 2015 01:01:35 +0200 Subject: [PATCH] Improved error handling. --- config/initializers/models_searchable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/models_searchable.rb b/config/initializers/models_searchable.rb index 68b8d4f79..f6fb4a24e 100644 --- a/config/initializers/models_searchable.rb +++ b/config/initializers/models_searchable.rb @@ -3,7 +3,7 @@ if ActiveRecord::Base.connection.tables.include?('settings') if Setting.columns_hash.key?('state_current') # TODO: remove me later models_current = Models.searchable.map(&:to_s) models_config = Setting.get('models_searchable') - if models_config && models_current != models_config + if models_current != models_config Setting.set('models_searchable', models_current) end end