Class: Course::UsersComponent

Inherits:
SimpleDelegator
  • Object
show all
Includes:
ControllerComponentHost::Component
Defined in:
app/controllers/components/course/users_component.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.can_be_disabled_for_course?Boolean

Returns:

  • (Boolean)

5
6
7
# File 'app/controllers/components/course/users_component.rb', line 5

def self.can_be_disabled_for_course?
  false
end

.display_nameObject


9
10
11
# File 'app/controllers/components/course/users_component.rb', line 9

def self.display_name
  I18n.t('components.users.name')
end

Instance Method Details


13
14
15
# File 'app/controllers/components/course/users_component.rb', line 13

def sidebar_items
  main_sidebar_items + admin_sidebar_items
end