aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index b32c97bead..5894dab230 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,6 +1,6 @@
* Added yield to Object#presence, so you can do this:
- project.account.owner.presence { |p| p.name.first } || 'Nobody'
+ project.account.owner.presence { name.first } || 'Nobody'
instead of calling twice (which may incur double SQL calls):