Sha256: 2c459236ef0f77d9100367ab4fbfc8799f1dc49e1153beab8ba2b27382888890

Contents?: true

Size: 776 Bytes

Versions: 40

Compression:

Stored size: 776 Bytes

Contents

module C80Estate
  class Engine < ::Rails::Engine
    isolate_namespace C80Estate

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

40 entries across 40 versions & 1 rubygems

Version Path
c80_estate-0.1.0.39 lib/c80_estate/engine.rb
c80_estate-0.1.0.38 lib/c80_estate/engine.rb
c80_estate-0.1.0.37 lib/c80_estate/engine.rb
c80_estate-0.1.0.36 lib/c80_estate/engine.rb
c80_estate-0.1.0.35 lib/c80_estate/engine.rb
c80_estate-0.1.0.34 lib/c80_estate/engine.rb
c80_estate-0.1.0.33 lib/c80_estate/engine.rb
c80_estate-0.1.0.32 lib/c80_estate/engine.rb
c80_estate-0.1.0.31 lib/c80_estate/engine.rb
c80_estate-0.1.0.30 lib/c80_estate/engine.rb
c80_estate-0.1.0.29 lib/c80_estate/engine.rb
c80_estate-0.1.0.28 lib/c80_estate/engine.rb
c80_estate-0.1.0.27 lib/c80_estate/engine.rb
c80_estate-0.1.0.26 lib/c80_estate/engine.rb
c80_estate-0.1.0.25 lib/c80_estate/engine.rb
c80_estate-0.1.0.24 lib/c80_estate/engine.rb
c80_estate-0.1.0.23 lib/c80_estate/engine.rb
c80_estate-0.1.0.22 lib/c80_estate/engine.rb
c80_estate-0.1.0.21 lib/c80_estate/engine.rb
c80_estate-0.1.0.20 lib/c80_estate/engine.rb