{"action":"created","issue":{"url":"https://api.github.com/repos/airblade/paper_trail/issues/584","labels_url":"https://api.github.com/repos/airblade/paper_trail/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/airblade/paper_trail/issues/584/comments","events_url":"https://api.github.com/repos/airblade/paper_trail/issues/584/events","html_url":"https://github.com/airblade/paper_trail/issues/584","id":99081074,"number":584,"title":"Can't remove deprecation warning after updating to 4.0.0","user":{"login":"oniofchaos","id":1635820,"avatar_url":"https://avatars.githubusercontent.com/u/1635820?v=3","gravatar_id":"","url":"https://api.github.com/users/oniofchaos","html_url":"https://github.com/oniofchaos","followers_url":"https://api.github.com/users/oniofchaos/followers","following_url":"https://api.github.com/users/oniofchaos/following{/other_user}","gists_url":"https://api.github.com/users/oniofchaos/gists{/gist_id}","starred_url":"https://api.github.com/users/oniofchaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniofchaos/subscriptions","organizations_url":"https://api.github.com/users/oniofchaos/orgs","repos_url":"https://api.github.com/users/oniofchaos/repos","events_url":"https://api.github.com/users/oniofchaos/events{/privacy}","received_events_url":"https://api.github.com/users/oniofchaos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-04T23:06:59Z","updated_at":"2015-08-06T19:32:27Z","closed_at":null,"body":"I receive the following error in my app after upgrading to 4.0.0 (from 3.0.8)\r\n```ruby\r\nDEPRECATION WARNING: Currently, Active Record suppresses errors raised within `after_rollback`/`after_commit` callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.\r\n\r\nYou can opt into the new behavior and remove this warning by setting:\r\n\r\n  config.active_record.raise_in_transactional_callbacks = true\r\n```\r\n\r\nThe line that it's complaining about is `has_paper_trail` in my models. I have the config statement set in my `config.application.rb`, and was only able to remove the warnings by adding `ActiveRecord::Base.raise_in_transactional_callbacks = true` before my `Bundler.require` statement in an earlier part of my `config.application.rb`\r\n\r\nAccording to https://github.com/rails/rails/issues/18084#issuecomment-67503032, it might be an issue somewhere in `paper_trail`. Any thoughts/suggestions?"},"comment":{"url":"https://api.github.com/repos/airblade/paper_trail/issues/comments/128481634","html_url":"https://github.com/airblade/paper_trail/issues/584#issuecomment-128481634","issue_url":"https://api.github.com/repos/airblade/paper_trail/issues/584","id":128481634,"user":{"login":"oniofchaos","id":1635820,"avatar_url":"https://avatars.githubusercontent.com/u/1635820?v=3","gravatar_id":"","url":"https://api.github.com/users/oniofchaos","html_url":"https://github.com/oniofchaos","followers_url":"https://api.github.com/users/oniofchaos/followers","following_url":"https://api.github.com/users/oniofchaos/following{/other_user}","gists_url":"https://api.github.com/users/oniofchaos/gists{/gist_id}","starred_url":"https://api.github.com/users/oniofchaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniofchaos/subscriptions","organizations_url":"https://api.github.com/users/oniofchaos/orgs","repos_url":"https://api.github.com/users/oniofchaos/repos","events_url":"https://api.github.com/users/oniofchaos/events{/privacy}","received_events_url":"https://api.github.com/users/oniofchaos/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T19:32:27Z","updated_at":"2015-08-06T19:32:27Z","body":"For my non-Rails app that I have this issue in, my main file looks something like this:\r\n```ruby\r\nrequire 'active_model_serializers'\r\nrequire 'active_record'\r\nrequire 'paper_trail'\r\n\r\n# Load I18n locales\r\n# Load version file\r\n# Load concern files\r\n# Load model files <----- I get the warnings at this point.\r\n# Bunch of other stuff\r\n```\r\nThe first model that is loaded has the `has_paper_trail` line in it, and that's when I start seeing the warnings in the console."}}