1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test
Adrianna Chang 779bc9987d Only use ActionDispatch::ActionableExceptions middleware if local env
When building the default middleware stack, the ActionDispatch::ActionableExceptions
middleware should only be used if the configuration has :consider_all_requests_local
set to true.

There is an existing check #actionable_request? in ActionableExceptions
that will prevent actionable exceptions from being dispatched, which
relies on the "action_dispatch.show_detailed_exceptions" header being
set to false. This check should remain in place as a second line of defense
in case the ActionableExceptions middleware is added back to the application.

However, we can go ahead and remove the middleware from the default stack
when the environment is not local.
2020-11-25 16:15:53 -05:00
..
application Only use ActionDispatch::ActionableExceptions middleware if local env 2020-11-25 16:15:53 -05:00
command Isolate ARGV in Rails::Command.invoke 2020-02-18 15:02:56 -06:00
commands Add support for sqlcmd instead of sqsh on sql server 2020-11-13 00:01:19 +06:00
configuration Get rid of unnecessary meta programming 2020-10-07 11:12:02 +09:00
engine Use the single line editor in console test 2019-12-24 20:47:21 +09:00
fixtures/lib Remove unused fixtures 2017-09-26 07:45:42 +09:00
generators Merge pull request #40527 from jonathanhefner/springy-bins 2020-11-24 14:02:58 -05:00
isolation Move Spring machinery back to bin files 2020-11-03 16:35:40 -06:00
minitest Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00
railties Wrap evaluation of db/seeds.rb with the executor 2020-11-18 16:26:20 -06:00
test_unit Fixed up error output tests and added a missing failure output test. 2020-05-20 15:54:28 -07:00
abstract_unit.rb Revert "You give jruby_skip & rubinius_skip a good name" 2019-08-02 00:24:11 -04:00
app_loader_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
backtrace_cleaner_test.rb Don't modify relative ./ paths in BacktraceCleaner 2019-10-03 14:06:58 -07:00
chdir_helpers.rb Avoid chdir error in Railties tests on Ruby master 2020-10-04 00:26:03 +01:00
code_statistics_calculator_test.rb Add support for stylesheets and ERB views to rails stats. 2020-11-10 09:40:18 -07:00
code_statistics_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
console_helpers.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
engine_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
env_helpers.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
generators_test.rb remove reference to global rails command and replace with bin/rails 2019-12-27 19:32:37 +00:00
initializable_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
json_params_parsing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
path_generation_test.rb Remove deprecated config.secret_token 2019-01-17 16:08:34 -05:00
paths_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
rack_logger_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
rails_info_controller_test.rb Fix secret_key_base for Railties 2019-03-13 16:41:29 -04:00
rails_info_test.rb Revert "Merge pull request #34387 from yhirano55/rails_info_properties_json" 2019-01-08 22:21:20 +01:00
secrets_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
version_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00