Sha256: f0f7e97b1109faff5e597f659e0fc7d55267b0b699492e62eb633e54d6504e07

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

module IIFinder
  module Coactors
    extend ActiveSupport::Concern

    included do
      include Coactive::Base

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

      class << self
        alias_method :chain, :coact
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ii_finder-2.3.0 lib/ii_finder/coactors.rb
ii_finder-2.2.2 lib/ii_finder/coactors.rb
ii_finder-2.2.1 lib/ii_finder/coactors.rb
ii_finder-2.2.0 lib/ii_finder/coactors.rb
ii_finder-2.1.0 lib/ii_finder/coactors.rb