Class: AhoyCaptain::Locations::CountriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AhoyCaptain::Locations::CountriesController
- Includes:
- AhoyCaptain::Limitable
- Defined in:
- app/controllers/ahoy_captain/locations/countries_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from Rangeable
Methods included from CompareMode
#compare_mode?, #comparison_mode, included
Instance Method Details
#index ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/controllers/ahoy_captain/locations/countries_controller.rb', line 12 def index results = cached(:countries) do CountryQuery.call(params) .limit(limit) end @countries = paginate(results).map { |country| CountryDecorator.new(country, self) } end |