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

Removed a stray method_missing in the new callbacks system

This commit is contained in:
Yehuda Katz + Carl Lerche 2009-04-29 11:26:01 -07:00
parent 8a4e77b420
commit 059afb3a3a

View file

@ -304,15 +304,6 @@ module ActiveSupport
end
end
# This method_missing is supplied to catch callbacks with keys and create
# the appropriate callback for future use.
def method_missing(meth, *args, &blk)
if meth.to_s =~ /_run__([\w:]+)__(\w+)__(\w+)__callbacks/
return self.class._create_and_run_keyed_callback($1, $2.to_sym, $3.to_sym, self, &blk)
end
super
end
# An Array with a compile method
class CallbackChain < Array
def initialize(symbol)