Skip to content

Instantly share code, notes, and snippets.

@mctaylorpants
Created March 26, 2020 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mctaylorpants/fb7404808715cbd47b1b8754146f2143 to your computer and use it in GitHub Desktop.
Save mctaylorpants/fb7404808715cbd47b1b8754146f2143 to your computer and use it in GitHub Desktop.
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