Class: Crm::Reports::PresenceController

Inherits:
CrmController
  • Object
show all
Includes:
Controllers::ReportCommandFlashable
Defined in:
app/controllers/crm/reports/presence_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/crm/reports/presence_controller.rb', line 4

def show
  authorize! :read, EmployeePhoneStatus
  @report_command = ::Report::PresenceReport::PresenceCommand.new(presence_command_params)
  @report_command.execute
  flash_report_command_errors
  respond_to do |format|
    format.html
    format.turbo_stream
  end
end