class Sprockets::BundledAsset
def build_source
def build_source hash = environment.cache_hash("#{pathname}:source", id) do data = "" # Explode Asset into parts and gather the dependency bodies to_a.each { |dependency| data << dependency.body } # Run bundle processors on concatenated source data = blank_context.evaluate(pathname, :data => data, :processors => environment.bundle_processors(content_type)) { 'length' => Rack::Utils.bytesize(data), 'digest' => environment.digest.update(data).hexdigest, 'source' => data } end hash['length'] = Integer(hash['length']) if hash['length'].is_a?(String) @length = hash['length'] @digest = hash['digest'] @source = hash['source'] hash end