From 439a74520daa6ff255c83000cf6b0f3407805acf Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Wed, 23 Feb 2011 02:25:38 +0700 Subject: Make sure that we set `env["action_dispatch.show_exceptions"]` This has been used by `show_exception` middleware even the setting wasn't get passed to `env` hash. --- railties/lib/rails/application.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties/lib') diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 9cb3a0f008..fb0f6fe032 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -122,7 +122,8 @@ module Rails @env_config ||= super.merge({ "action_dispatch.parameter_filter" => config.filter_parameters, "action_dispatch.secret_token" => config.secret_token, - "action_dispatch.asset_path" => nil + "action_dispatch.asset_path" => nil, + "action_dispatch.show_exceptions" => config.action_dispatch.show_exceptions }) end -- cgit v1.2.3