Class: Api::Partner::V1::CitiesController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Api::Partner::V1::CitiesController
- Defined in:
- app/controllers/api/partner/v1/cities_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#default_restaurant, #identity_cache_memoization, #render_unauthorize_action, #restaurants, #set_options
Methods included from LogrageCustomLogger
Methods included from ControllerHelpers
#check_boolean_param, #get_banners, #inventory_params, #reservation_params
Methods included from ResponseCacheConcern
Instance Method Details
#index ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/api/partner/v1/cities_controller.rb', line 8 def index cities = City.order(:name) render json: ::Api::Partner::CitySerializer.new(cities).as_json end |