1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/generators
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
..
actions Standardize nodoc comments 2021-07-29 21:18:07 +00:00
erb Fix scaffold index.html.erb variable name 2021-12-15 12:35:50 -06:00
rails Merge pull request #44144 from p8/railties/csp-cleanup 2022-01-11 20:48:52 +09:00
test_unit Merge PR #43611 2021-12-15 01:29:07 +00:00
testing Run rails new using specified prerelease version 2021-10-12 12:24:41 -05:00
actions.rb Fix generated route revocation 2021-12-24 11:55:39 -06:00
active_model.rb Use safer 'destroy!' in controller scaffolds 2022-01-20 16:46:07 +00:00
app_base.rb Prevent duplicate entries in plugin Gemfile 2022-01-05 16:59:58 -06:00
app_name.rb Used double quotes in template file for consistency. 2021-04-30 02:58:51 +05:30
base.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
database.rb Update pg gem required version to 1.1 2020-04-27 16:27:40 +09:00
erb.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
generated_attribute.rb Use to_formatted_s(:db) instead of to_s(:db) internally 2021-12-06 19:22:04 +00:00
migration.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
model_helpers.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
named_base.rb Fix scaffold index.html.erb variable name 2021-12-15 12:35:50 -06:00
resource_helpers.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
test_case.rb update from PR #36222 2020-02-12 13:31:43 -05:00
test_unit.rb [Railties] require_relative => require 2017-10-21 22:48:26 +09:00