Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Restoring documentation for env_config per #7070

  • Loading branch information...
commit 083ddec719c59c75acb331c6b22a25f8f2c42c9e 1 parent 3d55957
Justin Mazzi jmazzi authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 railties/lib/rails/application.rb
11 railties/lib/rails/application.rb
View
@@ -102,6 +102,17 @@ def reload_routes!
# Stores some of the Rails initial environment parameters which
# 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
@env_config ||= super.merge({
"action_dispatch.parameter_filter" => config.filter_parameters,
Please sign in to comment.
Something went wrong with that request. Please try again.