From dcfa67b303510072ddc77b8867dd56458ed8d918 Mon Sep 17 00:00:00 2001 From: Jess Brown Date: Wed, 16 Apr 2014 17:11:05 -0400 Subject: sort newest first --- app/helpers/refinery/blog/controller_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/refinery/blog/controller_helper.rb b/app/helpers/refinery/blog/controller_helper.rb index a300148..7235096 100644 --- a/app/helpers/refinery/blog/controller_helper.rb +++ b/app/helpers/refinery/blog/controller_helper.rb @@ -15,7 +15,7 @@ module Refinery end def find_all_blog_posts - @posts = Refinery::Blog::Post.live.includes(:comments, :categories).with_globalize.page(params[:page]) + @posts = Refinery::Blog::Post.live.includes(:comments, :categories).with_globalize.newest_first.page(params[:page]) end def find_tags -- cgit v1.2.3