1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Merge pull request #1715 from bhollis/issue1715-asset-url

Error calling Util#asset_url from DefaultHelpers#asset_url
This commit is contained in:
Thomas Reynolds 2015-12-30 16:01:16 -08:00
commit 03e13c5a26

View file

@ -201,9 +201,9 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
# @param [String] prefix The type prefix (such as "images")
# @param [Hash] options Additional options.
# @return [String] The fully qualified asset url
def asset_url(_path, prefix='', options={})
def asset_url(path, prefix='', options={})
options_with_resource = options.merge(current_resource: current_resource)
::Middleman::Util.asset_url(app, prefix, options_with_resource)
::Middleman::Util.asset_url(app, path, prefix, options_with_resource)
end
# Given a source path (referenced either absolutely or relatively)