Skip to content

Commit 9ba160a

Browse files
committed
Use pick instead of pluck
1 parent 82b3c6e commit 9ba160a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/models/post.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ def regenerate_bumped_at!
128128
update_columns(bumped_at:
129129
comments.where(parent_id: nil)
130130
.order(id: :desc)
131-
.limit(1)
132-
.pluck(:created_at) || created_at)
131+
.pick(:created_at) || created_at)
133132
# rubocop:enable Rails/SkipsModelValidations
134133
end
135134

0 commit comments

Comments
 (0)