aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJay Hayes <jay@bignerdranch.com>2013-07-26 15:18:04 -0500
committerJay Hayes <jay@bignerdranch.com>2013-07-26 15:18:04 -0500
commita99aa3ba1bb3277473daabfc9a631451935804cb (patch)
treeb5c3766bb32430e46aa6c7180911d267633022a5 /activesupport
parent82a2a78be816c16deb191abd72306a3c0aa9859d (diff)
downloadrails-a99aa3ba1bb3277473daabfc9a631451935804cb.tar.gz
rails-a99aa3ba1bb3277473daabfc9a631451935804cb.tar.bz2
rails-a99aa3ba1bb3277473daabfc9a631451935804cb.zip
Fixes typo in Object#try!
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/object/try.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/try.rb b/activesupport/lib/active_support/core_ext/object/try.rb
index 534bbe3c42..48190e1e66 100644
--- a/activesupport/lib/active_support/core_ext/object/try.rb
+++ b/activesupport/lib/active_support/core_ext/object/try.rb
@@ -47,7 +47,7 @@ class Object
end
# Same as #try, but will raise a NoMethodError exception if the receiving is not nil and
- # does not implemented the tried method.
+ # does not implement the tried method.
def try!(*a, &b)
if a.empty? && block_given?
yield self