app/controllers/assignments_controller.rb
def copy_participants_from_course
    if params[:assignment][:course_id]
      begin
        Course.find(params[:assignment][:course_id]).copy_participants(params[:id])
      rescue
        flash[:error] = $ERROR_INFO
      end
    end
  end
#--------------------------------------------------------------------------------------------------------------------
# COPY_PARTICIPANTS_FROM_COURSE
#  if assignment and course are given copy the course participants to assignment
# TODO: to be tested
#--------------------------------------------------------------------------------------------------------------------
COPY_PARTICIPANTS_FROM_COURSE
if assignment and course are given copy the course participants to assignment
TODO: to be tested
COPY_PARTICIPANTS_FROM_COURSE if assignment and course are given copy the course participants to assignment TODO : to be tested
def copy_participants_from_course
    if params[:assignment][:course_id]
      begin
        Course.find(params[:assignment][:course_id]).copy_participants(params[:id])
      rescue
        flash[:error] = $ERROR_INFO
      end
    end
  end
def copy_participants_from_course if params [ :assignment ] [ :course_id ] begin Course . find ( params [ :assignment ] [ :course_id ] ) . copy_participants ( params [ :id ] ) rescue flash [ :error ] = $ERROR_INFO end end end
COPY_PARTICIPANTS_FROM_COURSE
if assignment and course are given copy the course participants to assignment
TODO: to be tested
COPY_PARTICIPANTS_FROM_COURSE if assignment and course are given copy the course participants to assignment TODO : to be tested