Move status into the settings object
Only the very early boot code needs to look at the value from the environment directly.
This commit is contained in:
parent
6600221fe3
commit
141df02e67
14 changed files with 49 additions and 55 deletions
|
@ -95,7 +95,7 @@ Rails.application.configure do
|
|||
end
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false unless STATUS == :database_offline
|
||||
config.active_record.dump_schema_after_migration = false unless Settings.status == "database_offline"
|
||||
|
||||
# Enable autoloading of dependencies.
|
||||
config.enable_dependency_loading = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue