summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-24 00:16:44 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-24 00:16:44 +0200
commit336984d91a13678144d23d84ebe02125a4630eaf (patch)
tree2b85c6d39d1739d22e0483009f1cc16f7bf86344
parentFix test deprecations by providing a better fixture (diff)
downloadglsamaker-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.rb3
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