aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-07-03 14:52:03 -0700
committerGodfrey Chan <godfreykfc@gmail.com>2014-07-03 14:52:03 -0700
commitcce376c999af0f35a940235dc56602120aa8462a (patch)
tree905e3c7b16244d07c46ea4b266e603e65e7e4ba9 /activesupport
parentd4422c36ca265c076825e2ad94511f4e900c3015 (diff)
downloadrails-cce376c999af0f35a940235dc56602120aa8462a.tar.gz
rails-cce376c999af0f35a940235dc56602120aa8462a.tar.bz2
rails-cce376c999af0f35a940235dc56602120aa8462a.zip
:fire: these are lambdas now [ci skip]
This has changed since around 2b1500d6
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/callbacks.rb11
1 files changed, 2 insertions, 9 deletions
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 <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
+ # the same after this point.
def make_lambda(filter)
case filter
when Symbol