Sha256: b4e6c460fb44af780e1aec508511465ffb8784346c9b6dd934991d602e6dccc3

Contents?: true

Size: 746 Bytes

Versions: 16

Compression:

Stored size: 746 Bytes

Contents

module Ti
  class Engine < ::Rails::Engine
    isolate_namespace Ti

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

16 entries across 16 versions & 1 rubygems

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