Sha256: 5c40921a1ed30701e7a72b3f6bd69a40860bb3b45483c634a2024b821dad7953

Contents?: true

Size: 746 Bytes

Versions: 17

Compression:

Stored size: 746 Bytes

Contents

module Foundation
  class Engine < Rails::Engine
    # Save this block, we'll use it in two calls to .initializer
    add_paths_block = lambda { |app|
      app.config.assets.paths << File.expand_path("../../../scss", __FILE__)
      app.config.assets.paths << File.expand_path("../../../js", __FILE__)

      # Ensure Zepto and Modernizr are precompiled in production
      app.config.assets.precompile += %w(vendor/zepto.js vendor/custom.modernizr.js)
    }

    # Standard initializer
    initializer 'foundation.update_asset_paths', &add_paths_block

    # Special initializer lets us precompile assets without fully initializing
    initializer 'foundation.update_asset_paths', :group => :assets,
                &add_paths_block

  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
zurb-foundation-5-5.2.2 lib/foundation/engine.rb
zurb-foundation-4.3.2 lib/foundation/engine.rb
zurb-foundation-4.3.1 lib/foundation/engine.rb
zurb-foundation-4.3.0 lib/foundation/engine.rb
zurb-foundation-4.2.3 lib/foundation/engine.rb
zurb-foundation-4.2.2 lib/foundation/engine.rb
zurb-foundation-4.2.1 lib/foundation/engine.rb
zurb-foundation-4.2.0 lib/foundation/engine.rb
zurb-foundation-4.1.6 lib/foundation/engine.rb
zurb-foundation-4.1.5 lib/foundation/engine.rb
zurb-foundation-4.1.2 lib/foundation/engine.rb
zurb-foundation-4.1.1 lib/foundation/engine.rb
zurb-foundation-4.0.9 lib/foundation/engine.rb
zurb-foundation-4.0.8 lib/foundation/engine.rb
zurb-foundation-4.0.7 lib/foundation/engine.rb
zurb-foundation-4.0.5 lib/foundation/engine.rb
zurb-foundation-4.0.4 lib/foundation/engine.rb