diff options
author | Philip Arndt <p@arndt.io> | 2013-09-14 10:00:42 +1200 |
---|---|---|
committer | Philip Arndt <p@arndt.io> | 2013-09-16 04:56:47 +1200 |
commit | a8b5bce609089af8795768230c7dd3a9b87cd5e0 (patch) | |
tree | 22a2a154da2b48988c9c4e05600e52fa1b884bf1 /app/controllers/refinery/blog/categories_controller.rb | |
parent | 5ae082d79e554d3449083aa70ef64ef5d677759a (diff) | |
download | refinerycms-blog-a8b5bce609089af8795768230c7dd3a9b87cd5e0.tar.gz refinerycms-blog-a8b5bce609089af8795768230c7dd3a9b87cd5e0.tar.bz2 refinerycms-blog-a8b5bce609089af8795768230c7dd3a9b87cd5e0.zip |
Supported Rails 4 and Refinery 3.0.0.dev
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 23a835a..b5ab574 100644 --- a/app/controllers/refinery/blog/categories_controller.rb +++ b/app/controllers/refinery/blog/categories_controller.rb @@ -3,7 +3,7 @@ module Refinery class CategoriesController < BlogController def show - @category = Refinery::Blog::Category.find(params[:id]) + @category = Refinery::Blog::Category.friendly.find(params[:id]) @posts = @category.posts.live.includes(:comments, :categories).with_globalize.page(params[:page]) end |