aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
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 5b5729eb92..56da398978 100644
--- a/activesupport/lib/active_support/core_ext/object/try.rb
+++ b/activesupport/lib/active_support/core_ext/object/try.rb
@@ -89,7 +89,7 @@ class NilClass
# @person && @person.children.any? && @person.children.first.name
#
# With +try+
- # @person.try(:children).first.try(:name)
+ # @person.try(:children).try(:first).try(:name)
def try(*args)
nil
end