Change a .map to a .pluck.
This commit is contained in:
parent
f82d2c96e4
commit
5ea1b7399b
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ module Refinery
|
|||
end
|
||||
|
||||
def published_dates_older_than(date)
|
||||
where("published_at <= ?", date).map(&:published_at)
|
||||
where("published_at <= ?", date).pluck(:published_at)
|
||||
end
|
||||
|
||||
def live
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue