diff options
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 4ee009e..d21447c 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -126,7 +126,7 @@ module Refinery end def next(current_record) - where(["published_at > ? and draft = ?", current_record.published_at, false]).with_globalize.first + where(["published_at > ? and draft = ?", current_record.published_at, false]).reorder('published_at ASC').with_globalize.first end def published_before(date=Time.now) |