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
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
..
api
application Disable config.add_autoload_paths_to_load_path by default in Rails 7.1 2022-01-11 12:05:32 +01:00
autoloaders Update module definition style 2022-01-05 20:47:22 +01:00
command Standardize nodoc comments 2021-07-29 21:18:07 +00:00
commands Fix dbconsole for 3-tier config. 2021-12-17 11:17:17 -05:00
console
engine Remove glob pattern from app/channels load path 2021-10-27 11:46:06 -07:00
generators Use safer 'destroy!' in controller scaffolds 2022-01-20 16:46:07 +00:00
plugin
rack Don't require ActionDispatch::{Request,Response} 2021-07-19 01:30:54 +01:00
railtie Standardize nodoc comments 2021-07-29 21:18:07 +00:00
tasks Call yarn directly (#43641) 2021-11-15 09:53:12 +01:00
templates Merge pull request #44118 from JuanVqz/add-cursor-pointer 2022-01-07 22:41:38 -05:00
test_unit Extract list_tests from Rails::TestUnit::Runner.load_tests 2021-09-07 21:34:56 +09:00
all.rb Make Sprockets more optional, offer Propshaft as alternative (#43261) 2021-10-09 17:03:05 +02:00
app_loader.rb
app_updater.rb Make Sprockets more optional, offer Propshaft as alternative (#43261) 2021-10-09 17:03:05 +02:00
application.rb Delay loading Zeitwerk 2022-01-05 12:59:49 +01:00
application_controller.rb Add 'self' to ApplicationController CSP 2021-06-05 01:39:36 +01:00
autoloaders.rb Delay loading Zeitwerk 2022-01-05 12:59:49 +01:00
backtrace_cleaner.rb
cli.rb
code_statistics.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
code_statistics_calculator.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
command.rb Improve help for Rake tasks 2021-07-21 22:12:08 +02:00
commands.rb
configuration.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
dev_caching.rb
engine.rb Restore set_autoload_path triggering before bootstrap 2021-10-04 22:01:23 +02:00
gem_version.rb Start Rails 7.1 development 2021-12-07 15:52:30 +00:00
generators.rb Remove default reliance on Sass and CSS generators (#43110) 2021-08-26 13:40:25 +02:00
info.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
info_controller.rb use ruby 2.7's filter_map instead of select + map 2021-04-26 17:55:33 -04:00
initializable.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
mailers_controller.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
paths.rb
rack.rb
railtie.rb Explicitly order Railties by load order 2021-11-25 12:07:45 +01:00
ruby_version_check.rb
secrets.rb unsafe_load secrets.yml with psych 4 2021-07-03 09:19:22 -04:00
source_annotation_extractor.rb
tasks.rb
test_help.rb
version.rb
welcome_controller.rb Fixes an issue where an error is raised when a new rails app hits the internal rails welcome page, the exception is ActionController::RequestForgeryProtection::DisabledSessionError 2021-09-13 08:44:02 +01:00