Module: ActiveInteractor::Rails::Models::ClassMethods

Defined in:
lib/active_interactor/rails/models.rb

Overview

Model class helper methods

Author:

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#acts_as_contextObject

Include Context::Status methods

Since:

  • 1.0.0


14
15
16
17
18
19
20
# File 'lib/active_interactor/rails/models.rb', line 14

def acts_as_context
  class_eval do
    include InstanceMethods
    include ActiveInteractor::Context::Status
    delegate :each_pair, to: :attributes
  end
end