diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-07-24 00:16:44 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-07-24 00:16:44 +0200 |
commit | 336984d91a13678144d23d84ebe02125a4630eaf (patch) | |
tree | 2b85c6d39d1739d22e0483009f1cc16f7bf86344 | |
parent | Fix test deprecations by providing a better fixture (diff) | |
download | glsamaker-336984d91a13678144d23d84ebe02125a4630eaf.tar.gz glsamaker-336984d91a13678144d23d84ebe02125a4630eaf.tar.bz2 glsamaker-336984d91a13678144d23d84ebe02125a4630eaf.zip |
Silence a deprecation warning
This setting only applies to after_commit and after_rollback callbacks
which are not used, so we can safely set the non-deprecated value.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index fff588f..a860bbf 100644 --- a/config/application.rb +++ b/config/application.rb @@ -28,6 +28,9 @@ module Glsamaker # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password] + + # This will become standard in Rails 5.0 + config.active_record.raise_in_transactional_callbacks = true end end |