1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Restoring documentation for env_config per #7070

This commit is contained in:
Justin Mazzi 2012-07-31 22:26:00 -04:00
parent 3d55957c3d
commit 083ddec719

View file

@ -102,6 +102,17 @@ module Rails
# Stores some of the Rails initial environment parameters which # Stores some of the Rails initial environment parameters which
# will be used by middlewares and engines to configure themselves. # will be used by middlewares and engines to configure themselves.
# Currently stores:
#
# * "action_dispatch.parameter_filter" => config.filter_parameters,
# * "action_dispatch.secret_token" => config.secret_token,
# * "action_dispatch.show_exceptions" => config.action_dispatch.show_exceptions,
# * "action_dispatch.show_detailed_exceptions" => config.consider_all_requests_local,
# * "action_dispatch.logger" => Rails.logger,
# * "action_dispatch.backtrace_cleaner" => Rails.backtrace_cleaner
#
# These parameters will be used by middlewares and engines to configure themselves
#
def env_config def env_config
@env_config ||= super.merge({ @env_config ||= super.merge({
"action_dispatch.parameter_filter" => config.filter_parameters, "action_dispatch.parameter_filter" => config.filter_parameters,