if parent
parent.projects << resource
parent.save
end
success.html { redirect_to [*resource_chain, :projects] }
end
end
def update
update! do |success, failure|
success.html { redirect_to [*resource_chain, :projects] }
end
end
def destroy
destroy! do |success, failure|
success.html { redirect_to [*resource_chain, :projects] }
end
end
private
def check_read_permissions
authorize! :show, parent.repository if parent.is_a? Ontology
end
end