Sha256: b58aa6061e7703f559fdfd46a6fd0903f27eb92921d8f3bb1f52902874c7aa1c

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module Middleman::CoreExtensions::Assets
  class << self
    def registered(app)
      # Disable Padrino cache buster until explicitly enabled
      # app.set :asset_stamp, false
      
      app.send :include, InstanceMethod
    end
    alias :included :registered
  end
  
  module InstanceMethod
    def asset_url(path, prefix="")
      path.include?("://") ? path : File.join(self.http_prefix || "/", prefix, path)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-3.0.0.alpha.2 lib/middleman/core_extensions/assets.rb