mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Initialize the configuration with a value
This will fix the failures fixed by
41488adbb8
and keep this new option that is semi-private
outside of the generated configurations
This commit is contained in:
parent
d75844dba9
commit
48f896cd50
4 changed files with 2 additions and 10 deletions
|
@ -16,7 +16,7 @@ module Rails
|
|||
:railties_order, :relative_url_root, :secret_key_base, :secret_token,
|
||||
:ssl_options, :public_file_server,
|
||||
:session_options, :time_zone, :reload_classes_only_on_change,
|
||||
:beginning_of_week, :filter_redirect, :x
|
||||
:beginning_of_week, :filter_redirect, :x, :enable_dependency_loading
|
||||
|
||||
attr_writer :log_level
|
||||
attr_reader :encoding, :api_only, :static_cache_control
|
||||
|
@ -54,6 +54,7 @@ module Rails
|
|||
@api_only = false
|
||||
@debug_exception_response_format = nil
|
||||
@x = Custom.new
|
||||
@enable_dependency_loading = false
|
||||
end
|
||||
|
||||
def static_cache_control=(value)
|
||||
|
|
|
@ -57,7 +57,4 @@ Rails.application.configure do
|
|||
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||
# routes, locales, etc. This feature depends on the listen gem.
|
||||
<%= '# ' unless depend_on_listen? %>config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||
|
||||
# Enable the autoload loading behavior even if the application is eager loaded
|
||||
config.enable_dependency_loading = false
|
||||
end
|
||||
|
|
|
@ -91,7 +91,4 @@ Rails.application.configure do
|
|||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
<%- end -%>
|
||||
|
||||
# Enable the autoload loading behavior even if the application is eager loaded
|
||||
config.enable_dependency_loading = false
|
||||
end
|
||||
|
|
|
@ -41,7 +41,4 @@ Rails.application.configure do
|
|||
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
# Enable the autoload loading behavior even if the application is eager loaded
|
||||
config.enable_dependency_loading = false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue