1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #4581 from kennyj/remove_unused_argument

Remove unused argument.
This commit is contained in:
Aaron Patterson 2012-01-23 09:24:29 -08:00
commit a0ed45cc28

View file

@ -357,7 +357,7 @@ module ActiveSupport
# calculating which callbacks can be omitted because of per_key conditions.
#
def __run_callbacks(key, kind, object, &blk) #:nodoc:
name = __callback_runner_name(key, kind)
name = __callback_runner_name(kind)
unless object.respond_to?(name)
str = send("_#{kind}_callbacks").compile(key, object)
class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
@ -369,11 +369,11 @@ module ActiveSupport
end
def __reset_runner(symbol)
name = __callback_runner_name(nil, symbol)
name = __callback_runner_name(symbol)
undef_method(name) if method_defined?(name)
end
def __callback_runner_name(key, kind)
def __callback_runner_name(kind)
"_run__#{self.name.hash.abs}__#{kind}__callbacks"
end