Change a .map to a .pluck.

This commit is contained in:
Pete Higgins 2012-02-22 23:50:05 -08:00
parent f82d2c96e4
commit 5ea1b7399b

View file

@ -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