Class: Crm::Reports::ItemsSpecMatrixController

Inherits:
CrmController
  • Object
show all
Defined in:
app/controllers/crm/reports/items_spec_matrix_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
7
8
9
# File 'app/controllers/crm/reports/items_spec_matrix_controller.rb', line 3

def show
  p = params[:command].presence || {}
  p[:condition_in] = ['new'] if p[:condition_in].blank?
  @command = ::Report::ItemsSpecMatrix::Command.new(p)

  @command.execute if p.present?
end