Class: Tasks::Shared::RelatedDataController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject



6
7
# File 'app/controllers/tasks/shared/related_data_controller.rb', line 6

def index
end

#set_objectObject



9
10
11
12
13
14
15
# File 'app/controllers/tasks/shared/related_data_controller.rb', line 9

def set_object
  @object = GlobalID::Locator.locate(params[:object_global_id])

  if @object.nil? || (@object.respond_to?(:project_id) && @object.project_id != sessions_current_project_id)
    render status: 404 and return
  end
end