Sha256: 80577d103bb63fac5931d0737d52698d889e029f934f72265700dacfada23f04

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

module Refinery
  module Blog
    class CategoriesController < BlogController

      before_action :find_category, :find_all_blog_posts, only: :show

      private

      def find_category
        @category = Refinery::Blog::Category.friendly.find(params[:id])
      end

      def post_finder_scope
        @category.posts
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-blog-4.0.0 app/controllers/refinery/blog/categories_controller.rb
refinerycms-blog-3.0.2 app/controllers/refinery/blog/categories_controller.rb
refinerycms-blog-3.0.1 app/controllers/refinery/blog/categories_controller.rb