Sha256: 34a9a548e261083a649b23bbf4617018fc964d918ef58c8727323ec60e1b8e79

Contents?: true

Size: 757 Bytes

Versions: 18

Compression:

Stored size: 757 Bytes

Contents

module C80Map
  class Engine < ::Rails::Engine
    isolate_namespace C80Map

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

18 entries across 18 versions & 1 rubygems

Version Path
c80_map-0.1.0.24 lib/c80_map/engine.rb
c80_map-0.1.0.23 lib/c80_map/engine.rb
c80_map-0.1.0.22 lib/c80_map/engine.rb
c80_map-0.1.0.21 lib/c80_map/engine.rb
c80_map-0.1.0.20 lib/c80_map/engine.rb
c80_map-0.1.0.19 lib/c80_map/engine.rb
c80_map-0.1.0.18 lib/c80_map/engine.rb
c80_map-0.1.0.17 lib/c80_map/engine.rb
c80_map-0.1.0.16 lib/c80_map/engine.rb
c80_map-0.1.0.15 lib/c80_map/engine.rb
c80_map-0.1.0.14 lib/c80_map/engine.rb
c80_map-0.1.0.13 lib/c80_map/engine.rb
c80_map-0.1.0.12 lib/c80_map/engine.rb
c80_map-0.1.0.11 lib/c80_map/engine.rb
c80_map-0.1.0.10 lib/c80_map/engine.rb
c80_map-0.1.0.2 lib/c80_map/engine.rb
c80_map-0.1.0.1 lib/c80_map/engine.rb
c80_map-0.1.0 lib/c80_map/engine.rb