Sha256: 63ac35967fd7b08cc2804efe2de9f71b80b4595654f4f5a0b2f1101c7ba29d1e

Contents?: true

Size: 1016 Bytes

Versions: 20

Compression:

Stored size: 1016 Bytes

Contents

module C80Yax
  class Engine < ::Rails::Engine
    config.autoload_paths += %W(#{config.root}/app/models/c80_yax/concerns)
    config.i18n.load_path += Dir[config.root.join('config', 'locales', '*','*.{yml}').to_s]
    isolate_namespace C80Yax

    initializer :c80_yax_engine do
      if defined?(ActiveAdmin)
        ActiveAdmin.application.load_paths += Dir["#{config.root}/app/helpers/**/"]
        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_yax/**/"]
        # 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

20 entries across 20 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 lib/c80_yax/engine.rb
c80_yax-0.1.0.24 lib/c80_yax/engine.rb
c80_yax-0.1.0.23 lib/c80_yax/engine.rb
c80_yax-0.1.0.22 lib/c80_yax/engine.rb
c80_yax-0.1.0.21 lib/c80_yax/engine.rb
c80_yax-0.1.0.20 lib/c80_yax/engine.rb
c80_yax-0.1.0.18 lib/c80_yax/engine.rb
c80_yax-0.1.0.17 lib/c80_yax/engine.rb
c80_yax-0.1.0.16 lib/c80_yax/engine.rb
c80_yax-0.1.0.15 lib/c80_yax/engine.rb
c80_yax-0.1.0.14 lib/c80_yax/engine.rb
c80_yax-0.1.0.13 lib/c80_yax/engine.rb
c80_yax-0.1.0.12 lib/c80_yax/engine.rb
c80_yax-0.1.0.11 lib/c80_yax/engine.rb
c80_yax-0.1.0.10 lib/c80_yax/engine.rb
c80_yax-0.1.0.9 lib/c80_yax/engine.rb
c80_yax-0.1.0.8 lib/c80_yax/engine.rb
c80_yax-0.1.0.7 lib/c80_yax/engine.rb
c80_yax-0.1.0.6 lib/c80_yax/engine.rb
c80_yax-0.1.0.5 lib/c80_yax/engine.rb