mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:03:40 +08:00
13 lines
394 B
Ruby
13 lines
394 B
Ruby
module Stylesheet
|
|
module ScssFunctions
|
|
def asset_url(path)
|
|
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.asset_url(path.value)}')")
|
|
end
|
|
def image_url(path)
|
|
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.image_url(path.value)}')")
|
|
end
|
|
end
|
|
end
|
|
|
|
::SassC::Script::Functions.send :include, Stylesheet::ScssFunctions
|