Class: Ecm::References::CategoriesController
- Inherits:
-
Object
- Object
- Ecm::References::CategoriesController
- Defined in:
- app/controllers/ecm/references/categories_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 |
# File 'app/controllers/ecm/references/categories_controller.rb', line 3 def index @categories = Category.with_public_visibility.page(params[:page]).per(5) end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/ecm/references/categories_controller.rb', line 7 def show @category = Category.with_public_visibility.find(params[:id]) end |