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