Class: Course::Assessment::Controller

Inherits:
ComponentController show all
Defined in:
app/controllers/course/assessment/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

#categoryObject (protected)


14
15
16
# File 'app/controllers/course/assessment/controller.rb', line 14

def category
  @category ||= tab.category
end

#load_assessment_optionsObject (protected)

Callback to allow extra parameters to be provided to Cancancan when loading the Assessment resource.


10
11
12
# File 'app/controllers/course/assessment/controller.rb', line 10

def load_assessment_options
  {}
end

#tabObject (protected)


18
19
20
# File 'app/controllers/course/assessment/controller.rb', line 18

def tab
  @tab ||= @assessment.tab
end