fix #1242 by fixing all the routing from the review button

This commit is contained in:
Reinier Balt 2012-03-29 16:05:17 +02:00
parent 923919e802
commit af10e74017
4 changed files with 49 additions and 3 deletions

View file

@ -74,7 +74,17 @@ class ProjectsController < ApplicationController
def set_reviewed
@project.last_reviewed = Time.zone.now
@project.save
redirect_to :action => 'show'
case @source_view
when "project"
redirect_to :action => 'show'
when "project_list"
redirect_to :action => 'index'
when "review"
redirect_to :action => 'review'
else
redirect_to :action => 'index'
end
end
def projects_and_actions