Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add back #callback and deprecate it

  • Loading branch information...
commit a34dce97178e6ee4907cc9b1b078acf202816c43 1 parent b8ec4ea
@wycats wycats authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 activesupport/lib/active_support/callbacks.rb
View
5 activesupport/lib/active_support/callbacks.rb
@@ -93,6 +93,11 @@ def run_callbacks(kind, *args, &block)
send("_run_#{kind}_callbacks", *args, &block)
end
+ def callback(kind)
+ ActiveSupport::Deprecation.warn("callback is deprecated. Please use run_callbacks")
+ send("_run_#{kind}_callbacks")
+ end
+
class Callback
@@_callback_sequence = 0
Please sign in to comment.
Something went wrong with that request. Please try again.