lib/importo/engine.rb in importo-2.0.5 vs lib/importo/engine.rb in importo-3.0.9
- old
+ new
@@ -1,22 +1,24 @@
# frozen_string_literal: true
+require "axlsx"
+require "roo"
+require "roo-xls"
+require "slim"
+require "state_machines-activerecord"
+require "signum"
+require "turbo-rails"
+require "view_component"
+require "with_advisory_lock"
+
module Importo
class Engine < ::Rails::Engine
isolate_namespace Importo
- initializer 'importo.active_storage.attached' do
+ 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