mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #16563 from arthurnn/add_ar_raise_trans_option
Add default .raise_in_transactional_callbacks option to template
This commit is contained in:
commit
24bb8347b6
1 changed files with 5 additions and 0 deletions
|
@ -30,5 +30,10 @@ 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? -%>
|
||||
# For not swallow errors in after_commit/after_rollback callbacks.
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
<%- end -%>
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue