Sha256: 5b2423d8ea030b919b9af767793ed2b7965a8f52fe4bf7e092136dc2c716e70f

Contents?: true

Size: 784 Bytes

Versions: 7

Compression:

Stored size: 784 Bytes

Contents

module C80Wslider2
  class Engine < ::Rails::Engine
    isolate_namespace C80Wslider2

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

7 entries across 7 versions & 1 rubygems

Version Path
c80_wslider2-0.1.0.7 lib/c80_wslider2/engine.rb
c80_wslider2-0.1.0.6 lib/c80_wslider2/engine.rb
c80_wslider2-0.1.0.5 lib/c80_wslider2/engine.rb
c80_wslider2-0.1.0.4 lib/c80_wslider2/engine.rb
c80_wslider2-0.1.0.3 lib/c80_wslider2/engine.rb
c80_wslider2-0.1.0.2 lib/c80_wslider2/engine.rb
c80_wslider2-0.1.0.1 lib/c80_wslider2/engine.rb