Sha256: 25fbb255c86da423d3f4d86af95094cd5e1cb5cec568353b96a905dfb9f0e6e1
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true module IIInteractor module Loader class << self def call return unless defined?(Rails) return if Rails.env.production? engines = [Rails] + Rails::Engine.subclasses.map(&:instance) engines.each do |engine| Dir["#{engine.root}/app/interactors/**/*.rb"].each do |file| require file end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ii_interactor-1.1.0 | lib/ii_interactor/loader.rb |
ii_interactor-1.0.0 | lib/ii_interactor/loader.rb |