asset_data_url(path)
click to toggle source
def asset_data_url(path)
"url(#{scope.asset_data_uri(path)})"
end
asset_path(asset)
click to toggle source
def asset_path(asset)
public_path(asset).inspect
end
asset_url(asset)
click to toggle source
def asset_url(asset)
"url(#{public_path(asset)})"
end
audio_path(audio)
click to toggle source
def audio_path(audio)
scope.audio_path(audio).inspect
end
audio_url(audio)
click to toggle source
def audio_url(audio)
"url(#{scope.audio_path(audio)})"
end
font_path(font)
click to toggle source
def font_path(font)
if scope.respond_to?(:font_path)
scope.font_path(font).inspect
else
asset_path(font)
end
end
font_url(font)
click to toggle source
def font_url(font)
if scope.respond_to?(:font_path)
"url(#{scope.font_path(font)})"
else
asset_url(font)
end
end
image_path(img)
click to toggle source
def image_path(img)
scope.image_path(img).inspect
end
image_url(img)
click to toggle source
def image_url(img)
"url(#{scope.image_path(img)})"
end
javascript_path(javascript)
click to toggle source
def javascript_path(javascript)
scope.javascript_path(javascript).inspect
end
javascript_url(javascript)
click to toggle source
def javascript_url(javascript)
"url(#{scope.javascript_path(javascript)})"
end
stylesheet_path(stylesheet)
click to toggle source
def stylesheet_path(stylesheet)
scope.stylesheet_path(stylesheet).inspect
end
stylesheet_url(stylesheet)
click to toggle source
def stylesheet_url(stylesheet)
"url(#{scope.stylesheet_path(stylesheet)})"
end
video_path(video)
click to toggle source
def video_path(video)
scope.video_path(video).inspect
end
video_url(video)
click to toggle source
def video_url(video)
"url(#{scope.video_path(video)})"
end