Class: Api::Partner::V1::DistrictsController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Api::Partner::V1::DistrictsController
- Defined in:
- app/controllers/api/partner/v1/districts_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
9 10 11 12 13 |
# File 'app/controllers/api/partner/v1/districts_controller.rb', line 9 def index districts = District.where(city: @city).order(:name) render json: ::Api::Partner::DistrictSerializer.new(districts).as_json end |