Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #16563 from arthurnn/add_ar_raise_trans_option

Add default .raise_in_transactional_callbacks option to template
  • Loading branch information...
commit 24bb8347b6ff0da90059314d9aece7a2c94a272c 2 parents b8ef1d8 + c7c2df2
@rafaelfranca rafaelfranca authored
View
5 railties/lib/rails/generators/rails/app/templates/config/application.rb
@@ -30,5 +30,10 @@ class Application < Rails::Application
# 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? -%>
+ # For not swallow errors in after_commit/after_rollback callbacks.
+ config.active_record.raise_in_transactional_callbacks = true
+ <%- end -%>
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.