Created
March 26, 2020 18:56
-
-
Save mctaylorpants/fb7404808715cbd47b1b8754146f2143 to your computer and use it in GitHub Desktop.
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
def display_deprecation_warning_for_false_terminator | |
ActiveSupport::Deprecation.warn(<<-MSG.squish) | |
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. | |
MSG | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally from https://github.com/rails/rails/blob/c4d3e202e10ae627b3b9c34498afb45450652421/activesupport/lib/active_support/callbacks.rb#L783-L788