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:
commit
03e13c5a26
1 changed files with 2 additions and 2 deletions
|
@ -201,9 +201,9 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
|
||||||
# @param [String] prefix The type prefix (such as "images")
|
# @param [String] prefix The type prefix (such as "images")
|
||||||
# @param [Hash] options Additional options.
|
# @param [Hash] options Additional options.
|
||||||
# @return [String] The fully qualified asset url
|
# @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)
|
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
|
end
|
||||||
|
|
||||||
# Given a source path (referenced either absolutely or relatively)
|
# Given a source path (referenced either absolutely or relatively)
|
||||||
|
|
Loading…
Reference in a new issue