Sha256: 638e2015765135556d34886c341b920d54c0f7c1441b2b04230141899d4cfcf0
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
module Formol class CategoriesController < ApplicationController respond_to :html def index formol_authorize!(current_formol_user, :read_category) @categories = Formol::Category.ready_for_listing respond_with(@categories) end def show formol_authorize!(current_formol_user, :read_category) @category = Formol::Category.find(params[:id]) respond_with(@category) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formol-0.0.6 | app/controllers/formol/categories_controller.rb |
formol-0.0.5 | app/controllers/formol/categories_controller.rb |
formol-0.0.4 | app/controllers/formol/categories_controller.rb |