Sha256: a836f5376f50ba57e804fd1291ee1c0571ba697b209464422499d0b881e4db82
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
require_dependency "policy_manager/application_controller" module PolicyManager class CategoriesController < ApplicationController before_action :allow_admins # GET /categories def index @categories = PolicyManager::Config.rules end # GET /categories/1 def show @category = PolicyManager::Config.rules.find{|o| o.name == params[:id]} @terms = @category.terms.paginate(:page => params[:page], :per_page => 12) end private end end
Version data entries
4 entries across 4 versions & 1 rubygems