projects_controller.rb revision 5a17792f701eb630315dfc43937f8af386a52bc7
8900b9eb2514c07047541833286428572493a9fdStéphane Graberclass ProjectsController < InheritedResources::Base
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi format.html { redirect_to [*resource_chain, :projects] }
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi update! do |format|
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi format.html { redirect_to [*resource_chain, :projects] }
8900b9eb2514c07047541833286428572493a9fdStéphane Graber destroy! do |format|
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi format.html { redirect_to [*resource_chain, :projects] }
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi def check_read_permissions
57da8c32f85c0255efa61ee32e260068afdaa565KATOH Yasufumi authorize! :show, parent.repository if parent.is_a? Ontology