aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <p@arndt.io>2014-08-24 16:09:59 +0200
committerPhilip Arndt <p@arndt.io>2014-08-24 16:09:59 +0200
commitc4488e523dc5807ee2eb57fb7d8ca56fafb102ba (patch)
tree2e452fcf3afa108a1dcef37c20543a8794d026cb /app
parentea67de1af385339a07d4ab4ee06f294ad5638546 (diff)
parentdcfa67b303510072ddc77b8867dd56458ed8d918 (diff)
downloadrefinerycms-blog-c4488e523dc5807ee2eb57fb7d8ca56fafb102ba.tar.gz
refinerycms-blog-c4488e523dc5807ee2eb57fb7d8ca56fafb102ba.tar.bz2
refinerycms-blog-c4488e523dc5807ee2eb57fb7d8ca56fafb102ba.zip
Merge pull request #372 from jess/sorting
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