Skip to content

Commit

Permalink
Merge pull request #7219 from jmazzi/master
Browse files Browse the repository at this point in the history
Restoring documentation for env_config
  • Loading branch information
rafaelfranca committed Aug 1, 2012
2 parents 3d55957 + 083ddec commit 08ee16e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions railties/lib/rails/application.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ def reload_routes!


# 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,
Expand Down

0 comments on commit 08ee16e

Please sign in to comment.