diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/refinery/blog/posts_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/refinery/blog/posts_helper.rb b/app/helpers/refinery/blog/posts_helper.rb index 4653617..dfb742a 100644 --- a/app/helpers/refinery/blog/posts_helper.rb +++ b/app/helpers/refinery/blog/posts_helper.rb @@ -24,8 +24,8 @@ module Refinery ArchiveWidget.new(dates, self).display end - def blog_archive_dates - Refinery::Blog::Post.select('published_at').all_previous.map(&:published_at) + def blog_archive_dates(cutoff=Time.now.beginning_of_month) + Refinery::Blog::Post.published_dates_older_than(cutoff) end class ArchiveWidget |