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
Henrik Nyh e87608e355 Use safer 'destroy!' in controller scaffolds
The old code does

    @foo.destroy
    redirect_to foo_url, notice: "Foo was successfully destroyed."

which would incorrectly state the record was destroyed even if prevented
by a `before_destroy` callback.

The new version would raise.
2022-01-20 16:46:07 +00:00
..
application Fix the tests broken by the new add_autoload_paths_to_load_path 2022-01-11 14:57:13 +01:00
command Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
commands Fix dbconsole for 3-tier config. 2021-12-17 11:17:17 -05:00
configuration Get rid of unnecessary meta programming 2020-10-07 11:12:02 +09:00
engine Use the combined jsbundling-rails gem instead of individual js bundler gems (#43172) 2021-09-06 16:44:44 +02:00
fixtures Populate ARGV with Rails::Command.invoke args 2021-04-03 10:12:52 -05:00
generators Use safer 'destroy!' in controller scaffolds 2022-01-20 16:46:07 +00:00
isolation Clean up database configs for railties 2022-01-07 14:57:29 -05:00
minitest Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00
railties Merge pull request #43368 from FestaLab/render-hash-syntax 2021-12-08 18:13:44 -05: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
backtrace_cleaner_test.rb Don't modify relative ./ paths in BacktraceCleaner 2019-10-03 14:06:58 -07: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
console_helpers.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
engine_test.rb
env_helpers.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
generators_test.rb Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
initializable_test.rb
json_params_parsing_test.rb
path_generation_test.rb Remove deprecated config.secret_token 2019-01-17 16:08:34 -05:00
paths_test.rb
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