Class: Ecm::Links::CategoriesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/ecm/links/categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/ecm/links/categories_controller.rb', line 3

def index
  @categories = Category.includes(:links).all.decorate
end

#showObject



7
8
9
# File 'app/controllers/ecm/links/categories_controller.rb', line 7

def show
  @category = Category.includes(:links).find(params[:id]).decorate
end