Fixed initial setup.
This commit is contained in:
parent
949f414442
commit
f1ad842aee
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@ 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_current != models_config
|
||||
setting = Setting.find_by(name: 'models_searchable')
|
||||
if setting && models_current != models_config
|
||||
Setting.set('models_searchable', models_current)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue