tasks_controller.rb revision 80bec0e081f3ea13eec9ef8ea50a9ccbb74fcb46
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chenclass TasksController < InheritedResources::Base
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen format.html { redirect_to [*resource_chain, :tasks] }
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen update! do |format|
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen format.html { redirect_to [*resource_chain, :tasks] }
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen destroy! do |format|
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen format.html { redirect_to [*resource_chain, :tasks] }
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen def check_read_permissions
0035018c6da861f1b758fb9bf6b50245c52b48e2Raymond Chen authorize! :show, parent.repository if parent