aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-10 02:21:03 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-10 02:21:03 -0500
commitc1ce4144d1ef5bea3d829167cb52a5abc8d2ef7e (patch)
tree9c1c3df391732e39be9da8c762a7f86f2537ab96 /activesupport/lib
parent42a14c436c50f8c0ab57ef336e5fab77030107c0 (diff)
downloadrails-c1ce4144d1ef5bea3d829167cb52a5abc8d2ef7e.tar.gz
rails-c1ce4144d1ef5bea3d829167cb52a5abc8d2ef7e.tar.bz2
rails-c1ce4144d1ef5bea3d829167cb52a5abc8d2ef7e.zip
AS::Callbacks#run_callbacks remove key argument
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/callbacks.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index cbeba3139a..3c7dbb369c 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -74,8 +74,7 @@ module ActiveSupport
# save
# end
#
- def run_callbacks(kind, key = nil, &block)
- #TODO: deprecate key argument
+ def run_callbacks(kind, &block)
runner_name = self.class.__define_callbacks(kind, self)
send(runner_name, &block)
end