diff options
author | Ari Pollak <ajp@aripollak.com> | 2014-10-22 18:34:43 -0400 |
---|---|---|
committer | Ari Pollak <ajp@aripollak.com> | 2014-10-22 18:34:43 -0400 |
commit | e98f2a74eb20e2b0866b66130501f8480798dd4c (patch) | |
tree | 038533507b71043abab8a2c95318685770b10f8a /activesupport/lib/active_support | |
parent | 19d698d2b45ca33d8709c1993e39d7d9df284e3d (diff) | |
download | rails-e98f2a74eb20e2b0866b66130501f8480798dd4c.tar.gz rails-e98f2a74eb20e2b0866b66130501f8480798dd4c.tar.bz2 rails-e98f2a74eb20e2b0866b66130501f8480798dd4c.zip |
Bring try! into parity with try.
Based on commit 5e51bdda.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/try.rb | 2 |
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 31919474ed..112ec05e15 100644 --- a/activesupport/lib/active_support/core_ext/object/try.rb +++ b/activesupport/lib/active_support/core_ext/object/try.rb @@ -59,7 +59,7 @@ class Object # does not implement the tried method. def try!(*a, &b) if a.empty? && block_given? - yield self + try(*a, &b) else public_send(*a, &b) end |