Class: Vimo::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/vimo/application_controller.rb

Direct Known Subclasses

EntitiesController, ItemsController

Instance Method Summary collapse

Instance Method Details

#max_per_pageObject



21
22
23
# File 'app/controllers/vimo/application_controller.rb', line 21

def max_per_page
  per_page
end

#pageObject



13
14
15
# File 'app/controllers/vimo/application_controller.rb', line 13

def page
  params[:page].to_i
end

#per_pageObject



17
18
19
# File 'app/controllers/vimo/application_controller.rb', line 17

def per_page
  50
end