Skip to content

Commit

Permalink
🔥 these are lambdas now [ci skip]
Browse files Browse the repository at this point in the history
This has changed since around 2b1500d
  • Loading branch information
chancancode committed Jul 3, 2014
1 parent d4422c3 commit cce376c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions activesupport/lib/active_support/callbacks.rb
Expand Up @@ -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

This comment has been minimized.

Copy link
@vijaydev

vijaydev Jul 4, 2014

Member

s/a lambda/lambdas

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

0 comments on commit cce376c

Please sign in to comment.