aboutsummaryrefslogblamecommitdiffstats
path: root/app/controllers/refinery/blog/categories_controller.rb
blob: 23a835a23a2b1b149185f9280bb7758da2b5c61c (plain) (tree)
1
2
3
4
5
6
7

               
                                               

              
                                                              
                                                                                                         




         
module Refinery
  module Blog
    class CategoriesController < BlogController

      def show
        @category = Refinery::Blog::Category.find(params[:id])
        @posts = @category.posts.live.includes(:comments, :categories).with_globalize.page(params[:page])
      end

    end
  end
end