Class: Tasks::Shared::RelatedDataController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::Shared::RelatedDataController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/shared/related_data_controller.rb
Instance Method Summary collapse
Methods included from TaskControllerConfiguration
Instance Method Details
#index ⇒ Object
6 7 |
# File 'app/controllers/tasks/shared/related_data_controller.rb', line 6 def index end |
#set_object ⇒ Object
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 |