aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/refinery/blog/categories_controller.rb
blob: a363b8c27be941cdc4b2b2b211ab9c56895db658 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Refinery
  module Blog
    class CategoriesController < BlogController

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

    end
  end
end