This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveSupport::Deprecation.behavior = ActiveSupport::Deprecation.behavior + [->(message, callstack) { | |
if message.include?("Returning `false` in Active Record and Active Model callbacks will not implicitly halt a callback chain in Rails 5.1. To explicitly halt the callback chain, please use `throw :abort` instead.") | |
DeprecationLogger.log("Callback returned false", { callstack: callstack}) | |
end | |
}] |