Class: Ecm::References::ReferencesController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/ecm/references/references_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/ecm/references/references_controller.rb', line 3

def index
  @references = Reference.with_public_visibility.page(params[:page]).per(5)
end

#showObject



7
8
9
# File 'app/controllers/ecm/references/references_controller.rb', line 7

def show
  @reference = Reference.with_public_visibility.find(params[:id])
end