app/controllers/concerns/polymorphic_resource_scope.rb
# check the user can update the linked polymorphic resource
# so they can create a linked polymorphic resource for it
# e.g. A user wants link a background media resource to Project.where(id: 1)
check the user can update the linked polymorphic resource
so they can create a linked polymorphic resource for it
e.g. A user wants link a background media resource to Project.where(id: 1)
check the user can update the linked polymorphic resource so they can create a linked polymorphic resource for it e . g . A user wants link a background media resource to Project . where ( id : 1 )
def check_polymorphic_controller_resources
    unless polymorphic_controlled_resourses.exists?
      raise_no_resources_error
    end
  end
def check_polymorphic_controller_resources unless polymorphic_controlled_resourses . exists? raise_no_resources_error end end
check the user can update the linked polymorphic resource
so they can create a linked polymorphic resource for it
e.g.
check the user can update the linked polymorphic resource so they can create a linked polymorphic resource for it e . g .