diff options
author | Pete Higgins <pete@peterhiggins.org> | 2012-02-22 23:50:05 -0800 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2012-02-22 23:50:05 -0800 |
commit | 5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a (patch) | |
tree | 3957094dd3dda928d46843cfb36da3f45ab8f766 /app/models | |
parent | f82d2c96e49cdb3c649358b5fd3fbf3f52389660 (diff) | |
download | refinerycms-blog-5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a.tar.gz refinerycms-blog-5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a.tar.bz2 refinerycms-blog-5ea1b7399b627c9623c6cbd8c0b12b5fcfd9b99a.zip |
Change a .map to a .pluck.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/refinery/blog/post.rb | 2 |
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 |