Method: SuperSettings::Configuration::Controller#enhance

Defined in:
lib/super_settings/configuration.rb

#enhance { ... } ⇒ Object

Enhance the controller. You can define methods or call controller class methods like before_action, etc. in the block. These will be applied to the engine controller. This is essentially the same a monkeypatching the controller class.

Yields:

  • Block of code to inject into the controller class.



84
85
86
# File 'lib/super_settings/configuration.rb', line 84

def enhance(&block)
  @enhancement = block
end