Sha256: 5b3115f2addd88f8ccd381092d66b6aaa2160e32c984da2e23b473f86da01aa7

Contents?: true

Size: 361 Bytes

Versions: 23

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Proscenium
  module Helper
    def compute_asset_path(path, options = {})
      if %i[javascript stylesheet].include?(options[:type])
        result = "/#{path}"

        if (qs = Proscenium.config.cache_query_string)
          result << "?#{qs}"
        end

        return result
      end

      super
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
proscenium-0.10.0-x86_64-linux lib/proscenium/helper.rb
proscenium-0.10.0-aarch64-linux lib/proscenium/helper.rb
proscenium-0.10.0-arm64-darwin lib/proscenium/helper.rb
proscenium-0.10.0-x86_64-darwin lib/proscenium/helper.rb
proscenium-0.9.1-x86_64-linux lib/proscenium/helper.rb
proscenium-0.9.1-aarch64-linux lib/proscenium/helper.rb
proscenium-0.9.1-arm64-darwin lib/proscenium/helper.rb
proscenium-0.9.1-x86_64-darwin lib/proscenium/helper.rb
proscenium-0.9.0-x86_64-linux lib/proscenium/helper.rb
proscenium-0.9.0-aarch64-linux lib/proscenium/helper.rb
proscenium-0.9.0-arm64-darwin lib/proscenium/helper.rb
proscenium-0.9.0-x86_64-darwin lib/proscenium/helper.rb
proscenium-0.8.2-x86_64-linux lib/proscenium/helper.rb
proscenium-0.8.2-aarch64-linux lib/proscenium/helper.rb
proscenium-0.8.2-arm64-darwin lib/proscenium/helper.rb
proscenium-0.8.2-x86_64-darwin lib/proscenium/helper.rb
proscenium-0.8.0-aarch64-linux lib/proscenium/helper.rb
proscenium-0.8.0-arm64-darwin lib/proscenium/helper.rb
proscenium-0.8.0-x86_64-darwin lib/proscenium/helper.rb
proscenium-0.7.0-x86_64-linux lib/proscenium/helper.rb