Module: Wallaby::Configurable

Extended by:
ActiveSupport::Concern
Included in:
ApplicationHelper, ResourcesConcern
Defined in:
lib/concerns/wallaby/configurable.rb

Overview

Configurable related

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#wallaby_controllerClass

Returns its controller class.

Returns:

  • (Class)

    its controller class



412
413
414
# File 'lib/concerns/wallaby/configurable.rb', line 412

def wallaby_controller
  @wallaby_controller ||= try(:controller).try(:class) || self.class
end