Sha256: f0f31182eeadde750dbcbdaab872debf7571be23d217f31f3e5ea87d2e716712

Contents?: true

Size: 743 Bytes

Versions: 6

Compression:

Stored size: 743 Bytes

Contents

module Co
  class Engine < ::Rails::Engine
    isolate_namespace Co

    initializer :co_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/**/"]
        # 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

6 entries across 6 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 engines/co/lib/co/engine.rb
c80_yax-0.1.0.24 engines/co/lib/co/engine.rb
c80_yax-0.1.0.23 engines/co/lib/co/engine.rb
c80_yax-0.1.0.22 engines/co/lib/co/engine.rb
c80_yax-0.1.0.21 engines/co/lib/co/engine.rb
c80_yax-0.1.0.20 engines/co/lib/co/engine.rb