Class: Course::SettingsComponent

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.can_be_disabled_for_course?Boolean

Prevent user from locking him/herself out of settings.


6
7
8
# File 'app/controllers/components/course/settings_component.rb', line 6

def self.can_be_disabled_for_course?
  false
end

.display_nameObject


10
11
12
# File 'app/controllers/components/course/settings_component.rb', line 10

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

Instance Method Details


14
15
16
# File 'app/controllers/components/course/settings_component.rb', line 14

def sidebar_items
  admin_sidebar_items + settings_sidebar_items
end