Sha256: b7fce225650a7b7b0eafa9ec97dde05d486073b3452ba37d9cad89c5bcf26dfc

Contents?: true

Size: 790 Bytes

Versions: 10

Compression:

Stored size: 790 Bytes

Contents

module C80OrderForm
  class Engine < ::Rails::Engine
    isolate_namespace C80OrderForm

    initializer :c80_order_form_engine do
      if defined?(ActiveAdmin)
        ActiveAdmin.application.load_paths += Dir["#{config.root}/app/models/**/"]
        #ActiveAdmin.application.load_paths += Dir["#{config.root}/app/models/concerns/**/"]
        ActiveAdmin.application.load_paths += Dir["#{config.root}/app/admin/c80_order_form/**/"]
        # ActiveAdmin.application.load_paths += Dir["#{config.root}/app/jobs/**/"]
      end
    end

    initializer :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

10 entries across 10 versions & 1 rubygems

Version Path
c80_order_form-0.1.0.11 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.10 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.9 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.8 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.7 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.6 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.5 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.4 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.3 lib/c80_order_form/engine.rb
c80_order_form-0.1.0.1 lib/c80_order_form/engine.rb