Sha256: a5cfb93905ff51680f592093ce66cb1496262b54cd7bf0d6c441f320677ef122

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

module Blast
  module Tasks
    class Engine < ::Rails::Engine
      isolate_namespace Blast::Tasks
      paths["app/views"] << "app/views/blast/tasks"
    
      initializer :append_migrations do |app|
        unless app.root.to_s.match(root.to_s)
          config.paths["db/migrate"].expanded.each do |p|
            app.config.paths["db/migrate"] << p
          end
        end
      end
    
      config.to_prepare do
        Dir.glob(Engine.root.join("app", "decorators", "**", "*_decorator*.rb")) do |c|
          Rails.configuration.cache_classes ? require(c) : load(c)
        end
      end
    
    end
  
  end
end



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blast_tasks-0.0.1 lib/blast/tasks/engine.rb