From cce376c999af0f35a940235dc56602120aa8462a Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Thu, 3 Jul 2014 14:52:03 -0700 Subject: :fire: these are lambdas now [ci skip] This has changed since around 2b1500d6 --- activesupport/lib/active_support/callbacks.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 876033c193..cc007bd27e 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -416,15 +416,8 @@ module ActiveSupport # Procs:: A proc to call with the object. # Objects:: An object with a before_foo method on it to call. # - # All of these objects are compiled into methods and handled - # the same after this point: - # - # Symbols:: Already methods. - # Strings:: class_eval'd into methods. - # Procs:: using define_method compiled into methods. - # Objects:: - # a method is created that calls the before_foo method - # on the object. + # All of these objects are converted into a lambda and handled + # the same after this point. def make_lambda(filter) case filter when Symbol -- cgit v1.2.3