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:
Rafael Mendonça França 2014-08-19 16:19:36 -03:00
commit 24bb8347b6
1 changed files with 5 additions and 0 deletions

View File

@ -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