app/controllers/review_mapping_controller.rb
# This is for staggered deadline assignment
This is for staggered deadline assignment
This is for staggered deadline assignment
def automatic_review_mapping_staggered
    assignment = Assignment.find(params[:id])
    message = assignment.assign_reviewers_staggered(params[:assignment][:num_reviews], params[:assignment][:num_metareviews])
    flash[:note] = message
    redirect_to action: 'list_mappings', id: assignment.id
  end
def automatic_review_mapping_staggered assignment = Assignment . find ( params [ :id ] ) message = assignment . assign_reviewers_staggered ( params [ :assignment ] [ :num_reviews ] , params [ :assignment ] [ :num_metareviews ] ) flash [ :note ] = message redirect_to action : 'list_mappings' , id : assignment . id end
This is for staggered deadline assignment
This is for staggered deadline assignment