aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/refinery/blog/categories_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/refinery/blog/categories_controller.rb')
-rw-r--r--app/controllers/refinery/blog/categories_controller.rb2
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