Sha256: 3029a3530c715ad280cb6ce66df11cd8afc67f6495b0a45acd817816b969f33f

Contents?: true

Size: 577 Bytes

Versions: 8

Compression:

Stored size: 577 Bytes

Contents

::ActionView::Base.send(:include, AssetHatHelper)

# Precalculate (and memoize) asset commit IDs
AssetHat::TYPES.each do |type|
  next if AssetHat.config[type.to_s].blank? ||
          AssetHat.config[type.to_s]['bundles'].blank?

  AssetHat.config[type.to_s]['bundles'].keys.each do |bundle|
    # Memoize commit ID for this bundle
    AssetHat.last_bundle_commit_id(bundle, type) if AssetHat.cache?

    # Memoize commit IDs for each file in this bundle
    AssetHat.bundle_filepaths(bundle, type).each do |filepath|
      AssetHat.last_commit_id(filepath)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
asset_hat-0.2.1 rails/init.rb
asset_hat-0.2.0 rails/init.rb
asset_hat-0.1.5 rails/init.rb
asset_hat-0.1.4 rails/init.rb
asset_hat-0.1.3 rails/init.rb
asset_hat-0.1.2 rails/init.rb
asset_hat-0.1.1 rails/init.rb
asset_hat-0.1.0 rails/init.rb