diff --git a/lib/cucumber/rails/action_controller.rb b/lib/cucumber/rails/action_controller.rb index 705089b1..9a93ca28 100644 --- a/lib/cucumber/rails/action_controller.rb +++ b/lib/cucumber/rails/action_controller.rb @@ -7,7 +7,9 @@ class ActionDispatch::ShowExceptions def call(env) env['action_dispatch.show_exceptions'] = !!ActionController::Base.allow_rescue - env['action_dispatch.show_detailed_exceptions'] = !ActionController::Base.allow_rescue + if Rails.version >= "3.2.1" + env['action_dispatch.show_detailed_exceptions'] = !ActionController::Base.allow_rescue + end __cucumber_orig_call__(env) end end