Class: Tasks::ObservationMatrices::DescriptionFromObservationMatrixController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/observation_matrices/description_from_observation_matrix_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#descriptionObject

GET /tasks/observation_matrices/description_from_observation_matrix/37/description



10
11
12
# File 'app/controllers/tasks/observation_matrices/description_from_observation_matrix_controller.rb', line 10

def description
  @description = Tools::Description::FromObservationMatrix.new(**description_params)
end

#description_paramsObject (protected)



16
17
18
19
20
21
22
23
24
25
# File 'app/controllers/tasks/observation_matrices/description_from_observation_matrix_controller.rb', line 16

def description_params
  params.permit(
    :observation_matrix_id,
    :include_descendants,
    :language_id,
    :observation_matrix_row_id,
    :otu_id,
    keyword_ids: [] # arrays must be at the end
  ).to_h.symbolize_keys.merge(project_id: sessions_current_project_id)
end

#indexObject

GET /tasks/observation_matrices/description_from_observation_matrix



6
7
# File 'app/controllers/tasks/observation_matrices/description_from_observation_matrix_controller.rb', line 6

def index
end