Sha256: 6ac656c6a2d2005b901b9e6da56c1f7d51fbd13f7a2e5abaea5e3e3bf7f085a5
Contents?: true
Size: 776 Bytes
Versions: 2
Compression:
Stored size: 776 Bytes
Contents
module C80Swiper class Engine < ::Rails::Engine isolate_namespace C80Swiper initializer :c80_swiper_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/c80_swiper/**/"] # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
c80_swiper-0.1.0.1 | lib/c80_swiper/engine.rb |
c80_swiper-0.1.0 | lib/c80_swiper/engine.rb |