projects_controller.rb revision 80bec0e081f3ea13eec9ef8ea50a9ccbb74fcb46
2326cfd02158fb9217ef3bb4419142f144aa3c0bSascha Graefclass ProjectsController < InheritedResources::Base
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa format.html { redirect_to [*resource_chain, :projects] }
5b6f49391291b25c13e660ebdfcf80424cf941b2henning mueller update! do |format|
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa format.html { redirect_to [*resource_chain, :projects] }
5b6f49391291b25c13e660ebdfcf80424cf941b2henning mueller destroy! do |format|
b23869f9e7504049f5d28bbbc54d812c8ca36abbEugen Kuksa format.html { redirect_to [*resource_chain, :projects] }
3f2e11b6294f92d3434551cdbbf10d952a52d478Eugen Kuksa def check_read_permissions
3f2e11b6294f92d3434551cdbbf10d952a52d478Eugen Kuksa authorize! :show, parent.repository if parent.is_a? Ontology