aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/refinery/blog/post.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb
index ddfc3cc..9f672c5 100644
--- a/app/models/refinery/blog/post.rb
+++ b/app/models/refinery/blog/post.rb
@@ -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