Sha256: 52e328ee823012620639735562afbaed1db909451792b566c14688c0203eb91b

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

module IIInteractor
  module Coactors
    extend ActiveSupport::Concern

    included do
      include Coactive::Base

      configure_coactive do |config|
        config.load_paths = ['app/interactors']
        config.class_suffix = 'Interactor'
        config.use_cache = true
        config.lookup_superclass_until = ['ActiveRecord::Base', 'ActiveModel::Base']
      end

      class << self
        alias_method :interact, :coact
        alias_method :react, :coaction
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ii_interactor-2.3.1 lib/ii_interactor/coactors.rb
ii_interactor-2.3.0 lib/ii_interactor/coactors.rb
ii_interactor-2.2.2 lib/ii_interactor/coactors.rb
ii_interactor-2.2.1 lib/ii_interactor/coactors.rb
ii_interactor-2.2.0 lib/ii_interactor/coactors.rb
ii_interactor-2.1.0 lib/ii_interactor/coactors.rb
ii_interactor-2.0.0 lib/ii_interactor/coactors.rb