diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/object/blank.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/blank.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/blank.rb b/activesupport/lib/active_support/core_ext/object/blank.rb index 164a3c47d0..893858fcd6 100644 --- a/activesupport/lib/active_support/core_ext/object/blank.rb +++ b/activesupport/lib/active_support/core_ext/object/blank.rb @@ -42,7 +42,7 @@ class Object # You can also use this with a block that will be yielded if the object is present # and the result of that block will then be returned # - # person.presence { |p| p.name.first } || 'Nobody' + # project.account.owner.presence { |p| p.name.first } || 'Nobody' # # @return [Object] def presence |