diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/refinery/blog/post.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb index 86973da..4ee009e 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -93,7 +93,7 @@ module Refinery end def by_month(date) - where(:published_at => date.beginning_of_month..date.end_of_month).with_globalize + where(:published_at => date.beginning_of_month..date.end_of_month) end def by_archive(date) @@ -106,11 +106,11 @@ module Refinery end def published_dates_older_than(date) - published_before(date).with_globalize.pluck(:published_at) + published_before(date).pluck(:published_at) end def recent(count) - live.limit(count).with_globalize + live.limit(count) end def popular(count) @@ -118,11 +118,11 @@ module Refinery end def previous(item) - published_before(item.published_at).with_globalize.first + published_before(item.published_at).first end def uncategorized - live.includes(:categories).where(Refinery::Categorization.table_name => { :blog_category_id => nil }).with_globalize + live.includes(:categories).where(Refinery::Categorization.table_name => { :blog_category_id => nil }) end def next(current_record) |