Sha256: 31896a21b68a6a85c6bdd1c21473629b8c51899766d16580ec072105d6913f56

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

module Assetable
  class Engine < ::Rails::Engine
    config.generators.integration_tool :rspec
    config.generators.test_framework :rspec


    initializer :assets do |config|
      Rails.application.config.assets.precompile += %w( Moxie.swf Moxie.xap )
    end

    # Run the engine migrations with the main app rake task
    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
assetable-0.3.1 lib/assetable/engine.rb
assetable-0.3.0 lib/assetable/engine.rb