Permalink
Browse files

Add back #callback and deprecate it

  • Loading branch information...
1 parent b8ec4ea commit a34dce97178e6ee4907cc9b1b078acf202816c43 @wycats wycats committed Aug 15, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 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

0 comments on commit a34dce9

Please sign in to comment.