aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-09-20 10:09:08 -0300
committerJosé Valim <jose.valim@gmail.com>2009-09-20 10:56:38 -0300
commita0233dd3b21416e62be82f9b1b81258d985633bb (patch)
tree452fecda53ed52079f0c981e931cd2acd23d5c3d /activesupport
parent7cc1c2e71da1ad277acc7a7664321d2224a56bb8 (diff)
downloadrails-a0233dd3b21416e62be82f9b1b81258d985633bb.tar.gz
rails-a0233dd3b21416e62be82f9b1b81258d985633bb.tar.bz2
rails-a0233dd3b21416e62be82f9b1b81258d985633bb.zip
Use NewCallbacks on ActionDispatch::Callbacks.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/new_callbacks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/new_callbacks.rb b/activesupport/lib/active_support/new_callbacks.rb
index e78a3b2b6f..c56b9ad1ac 100644
--- a/activesupport/lib/active_support/new_callbacks.rb
+++ b/activesupport/lib/active_support/new_callbacks.rb
@@ -295,7 +295,7 @@ module ActiveSupport
"(#{filter})"
when Proc
@klass.send(:define_method, method_name, &filter)
- return method_name if filter.arity == 0
+ return method_name if filter.arity <= 0
method_name << (filter.arity == 1 ? "(self)" : " self, Proc.new ")
else
@@ -374,7 +374,7 @@ module ActiveSupport
# save
# end
#
- # The _run_set_callback :save,s method can optionally take a key, which
+ # The _run_set_callback :save method can optionally take a key, which
# will be used to compile an optimized callback method for each
# key. See #define_callbacks for more information.
#