Module: Course::ControllerComponentHost::Settings

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/components/course/controller_component_host.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#settingsObject

The settings interface instance for this component.

Returns:

  • An instance of the settings interface for the current component.

  • (nil)

    if the settings interface is not implemented.


110
111
112
# File 'app/controllers/components/course/controller_component_host.rb', line 110

def settings
  @settings ||= settings_class&.new(self)
end