Sha256: 5b2423d8ea030b919b9af767793ed2b7965a8f52fe4bf7e092136dc2c716e70f
Contents?: true
Size: 784 Bytes
Versions: 7
Compression:
Stored size: 784 Bytes
Contents
module C80Wslider2 class Engine < ::Rails::Engine isolate_namespace C80Wslider2 initializer :c80_wslider2_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_wslider2/**/"] # 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
7 entries across 7 versions & 1 rubygems