Class: Tasks::ObservationMatrices::MatrixImageController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::ObservationMatrices::MatrixImageController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/observation_matrices/matrix_image_controller.rb
Instance Method Summary collapse
Methods included from TaskControllerConfiguration
Instance Method Details
#index ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/tasks/observation_matrices/matrix_image_controller.rb', line 4 def index if ObservationMatrix.where(project_id: sessions_current_project_id).none? redirect_to :observation_matrices_hub_task, alert: 'Create an observation matrix first.' and return end end |