Class: Tasks::ObservationMatrices::MatrixImageController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject



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