Sha256: 43ca933ac6b72c10354cf7b7d808a29773be71d9da8904ce6a14f1ab9d0ae69a

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

module Importo
  class Engine < ::Rails::Engine
    isolate_namespace Importo

    initializer 'importo.active_storage.attached' do
      config.after_initialize do
        ActiveSupport.on_load(:active_record) do
          Importo::Import.include(ImportHelpers)
        end
      end
    end

    initializer 'importo.append_migrations' do |app|
      unless app.root.to_s.match?(root.to_s)
        config.paths['db/migrate'].expanded.each do |expanded_path|
          app.config.paths['db/migrate'] << expanded_path
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importo-2.0.5 lib/importo/engine.rb
importo-2.0.4 lib/importo/engine.rb