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