Sha256: 8e2bfdd1b69cbf06fe26497d3fcbd3ce8e6b503d200d9de0070d7540c8a54f11

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

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