formality_levels_controller.rb revision 9456d98a1b01a08c8efcaa9e26a9d3d368463717
if parent
parent.formality_levels << resource
parent.save
end
format.html { redirect_to [*resource_chain, :formality_levels] }
end
end
def update
update! do |format|
format.html { redirect_to [*resource_chain, :formality_levels] }
end
end
def destroy
destroy! do |format|
format.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