app/controllers/courses_controller.rb
# scope for attendant members to lecture; depends on params[:query]
scope for attendant members to lecture; depends on params[:query]
scope for attendant members to lecture ; depends on params [ : query ]
def lecture_member_scope()
    scp = []<< "(<< :LectureCourseClass >> #{Course_Class_Assocs})" 
    scp << Lecture_Time_Assocs unless @display_mode == 'list'
    @query_params ||={}
    scp << Syllabus_Assoc unless @query_params[:abstract].blank? 
    scp << Teacher_Member unless @display_mode == 'list' && @query_params[:teacher_name].blank?
    scp << TA_Member      unless @query_params[:ta_name].blank?
    scp << Student_Member unless @query_params[:student].blank?
    return scp.join('')
  end
def lecture_member_scope ( ) scp = [ ] << "(<< :LectureCourseClass >> #{Course_Class_Assocs})" scp << Lecture_Time_Assocs unless @display_mode == 'list' @query_params ||= { } scp << Syllabus_Assoc unless @query_params [ :abstract ] . blank? scp << Teacher_Member unless @display_mode == 'list' && @query_params [ :teacher_name ] . blank? scp << TA_Member unless @query_params [ :ta_name ] . blank? scp << Student_Member unless @query_params [ :student ] . blank? return scp . join ( '' ) end
scope for attendant members to lecture; depends on params[:query]
scope for attendant members to lecture ; depends on params [ : query ]