diff options
author | dougbradbury <doug@8thlight.com> | 2015-06-11 08:45:29 -0500 |
---|---|---|
committer | dougbradbury <doug@8thlight.com> | 2015-06-11 08:45:29 -0500 |
commit | c4bdb2f86a55abfaf9a5917e39a39712e7e00153 (patch) | |
tree | 2b2d182509d2b08cc538b74146c78dc7c447e1d4 /app/controllers/refinery/blog/categories_controller.rb | |
parent | d84600385bcc486241aad4e519164bda62064218 (diff) | |
download | refinerycms-blog-c4bdb2f86a55abfaf9a5917e39a39712e7e00153.tar.gz refinerycms-blog-c4bdb2f86a55abfaf9a5917e39a39712e7e00153.tar.bz2 refinerycms-blog-c4bdb2f86a55abfaf9a5917e39a39712e7e00153.zip |
tags and categories sort by newest first
Diffstat (limited to 'app/controllers/refinery/blog/categories_controller.rb')
-rw-r--r-- | app/controllers/refinery/blog/categories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/refinery/blog/categories_controller.rb b/app/controllers/refinery/blog/categories_controller.rb index b5ab574..649bfe6 100644 --- a/app/controllers/refinery/blog/categories_controller.rb +++ b/app/controllers/refinery/blog/categories_controller.rb @@ -4,7 +4,7 @@ module Refinery def show @category = Refinery::Blog::Category.friendly.find(params[:id]) - @posts = @category.posts.live.includes(:comments, :categories).with_globalize.page(params[:page]) + @posts = @category.posts.live.newest_first.uniq.includes(:comments, :categories).with_globalize.page(params[:page]) end end |