diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:23:57 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:44 -0300 |
commit | 07d3d402341e81ada0214f2cb2be1da69eadfe72 (patch) | |
tree | 8f75557a4144e685daa1befe8797511e2d80eb5d /railties | |
parent | 3a59dd212315ebb9bae8338b98af259ac00bbef3 (diff) | |
download | rails-07d3d402341e81ada0214f2cb2be1da69eadfe72.tar.gz rails-07d3d402341e81ada0214f2cb2be1da69eadfe72.tar.bz2 rails-07d3d402341e81ada0214f2cb2be1da69eadfe72.zip |
Change transaction callbacks to not swallowing errors.
Before this change any error raised inside a transaction callback
are rescued and printed in the logs.
Now these errors are not rescue anymore and just bubble up,
as the other callbacks.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb index dc0cc07888..c59ffb3491 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -31,10 +31,5 @@ module <%= app_const_base %> # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de - <%- unless options.skip_active_record? -%> - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - <%- end -%> end end |