Sha256: c1414e3a713438e76c74b5b2afe5373111045e4ca5c316c8cd30c82df1c43055

Contents?: true

Size: 731 Bytes

Versions: 28

Compression:

Stored size: 731 Bytes

Contents

module Edge
  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("../../../assets/sass", __FILE__)
      app.config.assets.paths << File.expand_path("../../../assets/js", __FILE__)

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

    # Standard initializer
    initializer("edge.update_asset_paths", &add_paths_block)

    # Special initializer lets us precompile assets without fully initializing
    initializer("edge.update_asset_paths", :group => :assets, &add_paths_block)

  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
edge_framework-2.1.1 lib/edge/engine.rb
edge_framework-2.1.0 lib/edge/engine.rb
edge_framework-2.0.0 lib/edge/engine.rb
edge_framework-2.0.0.a lib/edge/engine.rb
edge_framework-1.4.1 lib/edge/engine.rb
edge_framework-1.4.0 lib/edge/engine.rb
edge_framework-1.3.6 lib/edge/engine.rb
edge_framework-1.3.5 lib/edge/engine.rb
edge_framework-1.3.3 lib/edge/engine.rb
edge_framework-1.3.2 lib/edge/engine.rb
edge_framework-1.3.1 lib/edge/engine.rb
edge_framework-1.3.0 lib/edge/engine.rb
edge_framework-1.2.9 lib/edge/engine.rb
edge_framework-1.2.7 lib/edge/engine.rb
edge_framework-1.2.6 lib/edge/engine.rb
edge_framework-1.2.5 lib/edge/engine.rb
edge_framework-1.2.4 lib/edge/engine.rb
edge_framework-1.2.3 lib/edge/engine.rb
edge_framework-1.2.2 lib/edge/engine.rb
edge_framework-1.2.1 lib/edge/engine.rb