mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
More robust init settings
This commit is contained in:
parent
81956c23e2
commit
1f7ef2254e
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
# otherwise rake not working 100%
|
||||
if ActiveRecord::Base.connected? && ActiveRecord::Base.connection.table_exists?('settings')
|
||||
con = ActiveRecord::Base.connection
|
||||
if con.present? && con.table_exists?('settings')
|
||||
Setting.disclosure_name = true if Setting.disclosure_name.nil?
|
||||
Setting.disclosure_name = true if Setting.disclosure_name.nil?
|
||||
Setting.disclosure_org_name = true if Setting.disclosure_org_name.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue