2326cfd02158fb9217ef3bb4419142f144aa3c0bSascha Graefclass ProjectsController < InheritedResources::Base
a5473c6aa130f70a4682a52e38a8a7d0677254b9Eugen Kuksa success.html { redirect_to [*resource_chain, :projects] }
a5473c6aa130f70a4682a52e38a8a7d0677254b9Eugen Kuksa update! do |success, failure|
a5473c6aa130f70a4682a52e38a8a7d0677254b9Eugen Kuksa success.html { redirect_to [*resource_chain, :projects] }
a5473c6aa130f70a4682a52e38a8a7d0677254b9Eugen Kuksa destroy! do |success, failure|
a5473c6aa130f70a4682a52e38a8a7d0677254b9Eugen Kuksa success.html { redirect_to [*resource_chain, :projects] }
3f2e11b6294f92d3434551cdbbf10d952a52d478Eugen Kuksa def check_read_permissions
3f2e11b6294f92d3434551cdbbf10d952a52d478Eugen Kuksa authorize! :show, parent.repository if parent.is_a? Ontology