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