Module: AssetMapper

Defined in:
lib/asset_mapper.rb,
lib/asset_mapper/version.rb,
lib/asset_mapper/manifest.rb,
lib/asset_mapper/configuration.rb,
lib/asset_mapper/manifest_generator.rb

Overview

Examples:


asset_mapper = AssetMapper.new.configure do |config|
  config.asset_host = "/builds"
  config.manifest_files = "public/builds/asset_manifest.json"
  config.cache_manifest = Rails.env.development? || Rails.env.test?
  config.raise_on_missing_file = Rails.env.development? || Rails.env.test?
end

Defined Under Namespace

Classes: Configuration, Manifest, ManifestGenerator

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.new(*args, **kwargs, &block) ⇒ Configuration

Returns an instance of AssetMapper configuration.

Returns:



19
20
21
# File 'lib/asset_mapper.rb', line 19

def self.new(*args, **kwargs, &block)
  Configuration.new(*args, **kwargs, &block)
end