Method: ActiveInteractor::Interactor::Context::ClassMethods#context_class

Defined in:
lib/active_interactor/interactor/context.rb

#context_classConst

Get the interactor class' context class. If no class is found or no class is set via the #contextualize_with method a new class is created.

Returns:

See Also:

Since:

  • 0.1.0



190
191
192
# File 'lib/active_interactor/interactor/context.rb', line 190

def context_class
  @context_class ||= ActiveInteractor::Context::Loader.find_or_create(self)
end