Sha256: b9f0427fa142316eebeed8c982ad354c45b9642b0e1c5faebac802cfacd1da4e

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

module ActionView
  class Base
    # @note Override {ActionView::Helpers::AssetUrlHelper#compute_asset_path}.
    def compute_asset_path(source, options = {})
      if RevManifest.include?(source)
        if RevManifest.enabled?
          RevManifest.resolve(source, options)
        else
          dir = RevManifest.asset_public_directories[options[:type]] || ""
          File.join(dir, source)
        end
      else
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
actionview-rev_manifest-0.2.1 lib/rev_manifest/actionview/base.rb