Class: Tasks::ObservationMatrices::DescriptionFromObservationMatrixController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::ObservationMatrices::DescriptionFromObservationMatrixController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/observation_matrices/description_from_observation_matrix_controller.rb
Instance Method Summary collapse
-
#description ⇒ Object
GET /tasks/observation_matrices/description_from_observation_matrix/37/description.
- #description_params ⇒ Object protected
-
#index ⇒ Object
GET /tasks/observation_matrices/description_from_observation_matrix.
Methods included from TaskControllerConfiguration
Instance Method Details
#description ⇒ Object
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_params ⇒ Object (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 |
#index ⇒ Object
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 |