license_models_controller.rb revision fa4d8e48b630eb34132dfb2be179c6734ab3ebf6
if parent
parent.license_models << resource
parent.save
end
format.html { redirect_to [*resource_chain, :license_models] }
end
end
def update
update! do |format|
format.html { redirect_to [*resource_chain, :license_models] }
end
end
def destroy
destroy! do |format|
format.html { redirect_to [*resource_chain, :license_models] }
end
end
private
def check_read_permissions
authorize! :show, parent.repository if parent.is_a? Ontology
end
end