aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2013-08-12 08:12:51 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2013-08-12 08:12:51 +0300
commit433c541012bd44453d5e9fb826667916706f70fe (patch)
treeca37ed264094228cd3813b4012df931114977ea4
parentc44f919890cd4e46b0420caa5fdf96c8e65af4a5 (diff)
downloadrefinerycms-blog-433c541012bd44453d5e9fb826667916706f70fe.tar.gz
refinerycms-blog-433c541012bd44453d5e9fb826667916706f70fe.tar.bz2
refinerycms-blog-433c541012bd44453d5e9fb826667916706f70fe.zip
Use select and map instead of pluck to make JRuby happy.
-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 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)