Check if models_config exists to support migrations of existing systems.
This commit is contained in:
parent
dac3a506ec
commit
ecb0ace02d
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
if ActiveRecord::Base.connection.tables.include?('settings')
|
||||
models_current = Models.searchable.map(&:to_s)
|
||||
models_config = Setting.get('models_searchable')
|
||||
if models_current != models_config
|
||||
if models_config && models_current != models_config
|
||||
Setting.set('models_searchable', models_current)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue