Class: Api::Partner::V1::RestaurantDocumentsController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Api::Partner::V1::RestaurantDocumentsController
- Defined in:
- app/controllers/api/partner/v1/restaurant_documents_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
3 4 5 6 |
# File 'app/controllers/api/partner/v1/restaurant_documents_controller.rb', line 3 def index documents = RestaurantDocument.joins(:restaurant).where(restaurant_id: default_restaurant.id) render json: ::Api::Partner::RestaurantDocumentSerializer.new(documents).as_json.merge(enterprise_type: default_restaurant.type_of_enterprise) end |