Improved error handling.

This commit is contained in:
Martin Edenhofer 2015-09-26 01:01:35 +02:00
parent 17e3ecde92
commit dcf78780da

View file

@ -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