Permalink
Browse files

🔥 these are lambdas now [ci skip]

This has changed since around 2b1500d
  • Loading branch information...
1 parent d4422c3 commit cce376c999af0f35a940235dc56602120aa8462a @chancancode chancancode committed Jul 3, 2014
Showing with 2 additions and 9 deletions.
  1. +2 −9 activesupport/lib/active_support/callbacks.rb
@@ -416,15 +416,8 @@ def invert_lambda(l)
# Procs:: A proc to call with the object.
# Objects:: An object with a <tt>before_foo</tt> 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
@vijaydev

vijaydev Jul 4, 2014

Member

s/a lambda/lambdas

+ # the same after this point.
def make_lambda(filter)
case filter
when Symbol

0 comments on commit cce376c

Please sign in to comment.