Sha256: 940a2d7f3233b0306eb2482b27f78a73914f05de117fb3194288493a799f6a81
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
module C80Callback class Engine < ::Rails::Engine isolate_namespace C80Callback initializer :c80_callback_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_callback/**/"] # 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_callback-0.1.0.2 | lib/c80_callback/engine.rb |
c80_callback-0.1.0.1 | lib/c80_callback/engine.rb |
c80_callback-0.1.0 | lib/c80_callback/engine.rb |