diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2013-08-12 08:12:51 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2013-08-12 08:12:51 +0300 |
commit | 433c541012bd44453d5e9fb826667916706f70fe (patch) | |
tree | ca37ed264094228cd3813b4012df931114977ea4 /app | |
parent | c44f919890cd4e46b0420caa5fdf96c8e65af4a5 (diff) | |
download | refinerycms-blog-433c541012bd44453d5e9fb826667916706f70fe.tar.gz refinerycms-blog-433c541012bd44453d5e9fb826667916706f70fe.tar.bz2 refinerycms-blog-433c541012bd44453d5e9fb826667916706f70fe.zip |
Use select and map instead of pluck to make JRuby happy.
Diffstat (limited to 'app')
-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 9cf66d6..f0278f4 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -104,7 +104,7 @@ module Refinery end def published_dates_older_than(date) - published_before(date).pluck(:published_at) + published_before(date).select(:published_at).map(&:published_at) end def recent(count) |