Class: Crm::Reports::ItemsSpecMatrixController

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

Overview

Controller: items spec matrix.

Instance Method Summary collapse

Instance Method Details

#showObject



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

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