aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-02-22 23:50:05 -0800
committerPete Higgins <pete@peterhiggins.org>2012-02-22 23:50:05 -0800
commit5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a (patch)
tree3957094dd3dda928d46843cfb36da3f45ab8f766 /app
parentf82d2c96e49cdb3c649358b5fd3fbf3f52389660 (diff)
downloadrefinerycms-blog-5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a.tar.gz
refinerycms-blog-5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a.tar.bz2
refinerycms-blog-5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a.zip
Change a .map to a .pluck.
Diffstat (limited to 'app')
-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