Class: Api::Dashboard::DashboardsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/dashboard/dashboards_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#current_user, #identity_cache_memoization, #restaurants, #set_options

Methods included from LogrageCustomLogger

#append_info_to_payload

Methods included from ControllerHelpers

#check_boolean_param, #get_banners, #inventory_params, #reservation_params

Methods included from ResponseCacheConcern

#my_response_cache

Instance Method Details

#reportObject



4
5
6
7
8
# File 'app/controllers/api/dashboard/dashboards_controller.rb', line 4

def report
  render json: Api::Dashboard::ReportSerializer.new(restaurants, {
                                                      params: { channel: params[:channel] }
                                                    }).as_json
end