Sha256: 704761b5657f1d4b6741ed7d013e5da62a5781b5b62ed284e25ddbb463f35f6f
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 Bytes
Contents
module C80Brands class Engine < ::Rails::Engine isolate_namespace C80Brands initializer :c80_brands_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_brands/**/"] # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
c80_brands-0.1.0.2 | lib/c80_brands/engine.rb |
c80_brands-0.1.0.1 | lib/c80_brands/engine.rb |
c80_brands-0.1.0 | lib/c80_brands/engine.rb |