aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJess Brown <jess@brownwebdesign.com>2014-04-16 17:11:05 -0400
committerJess Brown <jess@brownwebdesign.com>2014-04-16 17:11:05 -0400
commitdcfa67b303510072ddc77b8867dd56458ed8d918 (patch)
tree65f0e47d9035fce08f985d7c2c4bcff09508c3e5 /app
parent0b4d412c0bafa3bad2a6fb4afc7b8ea250a97e84 (diff)
downloadrefinerycms-blog-dcfa67b303510072ddc77b8867dd56458ed8d918.tar.gz
refinerycms-blog-dcfa67b303510072ddc77b8867dd56458ed8d918.tar.bz2
refinerycms-blog-dcfa67b303510072ddc77b8867dd56458ed8d918.zip
sort newest first
Diffstat (limited to 'app')
-rw-r--r--app/helpers/refinery/blog/controller_helper.rb2
1 files changed, 1 insertions, 1 deletions
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