Class: Course::Assessment::SubmissionsController

Inherits:
ComponentController show all
Defined in:
app/controllers/course/assessment/submissions_controller.rb

Instance Method Summary collapse

Methods included from ApplicationSignInCallbacksConcern

#sign_in

Methods included from ApplicationPaginationConcern

#page_param

Methods included from ApplicationAnnouncementsConcern

#global_announcements, #unread_global_announcements

Methods included from ApplicationInstanceUserConcern

#current_instance_user

Methods included from ApplicationUserTimeZoneConcern

#set_time_zone

Methods included from ApplicationUserConcern

#handle_access_denied, #publicly_accessible?

Methods included from ApplicationComponentsConcern

#handle_component_not_found

Instance Method Details

#indexObject

:nodoc:


7
8
9
10
# File 'app/controllers/course/assessment/submissions_controller.rb', line 7

def index #:nodoc:
  @submissions = @submissions.from_category(category).confirmed
  @submissions = @submissions.filter(filter_params) unless filter_params.blank?
end

#pendingObject


12
13
14
# File 'app/controllers/course/assessment/submissions_controller.rb', line 12

def pending
  @submissions = pending_submissions.from_course(current_course)
end