Class: Crm::Reports::SalesRepRankingController
- Inherits:
-
CrmController
- Object
- CrmController
- Crm::Reports::SalesRepRankingController
- Includes:
- Controllers::ReportCommandFlashable
- Defined in:
- app/controllers/crm/reports/sales_rep_ranking_controller.rb
Overview
Controller: sales rep ranking.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/crm/reports/sales_rep_ranking_controller.rb', line 8 def show @report_command = ::Report::SalesRepRanking::SalesRepRankingCommand.new(sales_rep_ranking_command_params) @result = @report_command.execute return render partial: 'mini_view', layout: false if request.headers['Turbo-Frame'].present? flash_report_command_errors respond_to do |format| format.html do render partial: 'mini_view', layout: false if request.xhr? end format.turbo_stream end end |