Sha256: 720bfd7010e291b87d6071b7a9b0ec919f8b54556fd63ed6e482f8de170ef51b
Contents?: true
Size: 743 Bytes
Versions: 6
Compression:
Stored size: 743 Bytes
Contents
module Of class Engine < ::Rails::Engine isolate_namespace Of initializer :of_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/**/"] # 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
6 entries across 6 versions & 1 rubygems