bad_request('Missing command') if params[:command].blank?
RuleFailure.execute_command(params[:command], review.violation, current_user, params)
+ review.reload
render :partial => "project_reviews/review", :locals => {:review => review}
end
RuleFailure.execute_command(params[:command], violation, violation.snapshot.root_snapshot.project, current_user, params)
# reload data required for display
- violation = RuleFailure.find(:first, :include => [:rule, :snapshot, {:review => :action_plans}], :conditions => {:id => violation.id})
+ violation.reload
screens = violation.available_java_screens(current_user)
render :partial => 'resource/violation', :locals => {:violation => violation, :review_screens => screens}