optional database overrides in multicoop app_config
This commit is contained in:
parent
852f3484ad
commit
0ed867b991
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class FoodsoftConfig
|
|||
|
||||
def setup_database
|
||||
database_config = ActiveRecord::Base.configurations[Rails.env]
|
||||
database_config.merge!(config[:database]) if config[:database].present?
|
||||
database_config = database_config.merge(config[:database]) if config[:database].present?
|
||||
ActiveRecord::Base.establish_connection(database_config)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue