Renamed the configuration helper method root_relative to http_root_relative for consistency.
This commit is contained in:
parent
b7ba05f7c1
commit
1450f39d8c
@ -143,7 +143,7 @@ module Compass
|
||||
end
|
||||
end
|
||||
|
||||
def root_relative(path)
|
||||
def http_root_relative(path)
|
||||
hp = http_path || default_http_path
|
||||
hp = hp[0..-2] if hp[-1..-1] == "/"
|
||||
"#{hp}/#{path}"
|
||||
|
@ -8,7 +8,7 @@ module Compass::SassExtensions::Functions::Urls
|
||||
elsif Compass.configuration.http_stylesheets_path
|
||||
Compass.configuration.http_stylesheets_path
|
||||
else
|
||||
Compass.configuration.root_relative(Compass.configuration.css_dir)
|
||||
Compass.configuration.http_root_relative(Compass.configuration.css_dir)
|
||||
end
|
||||
|
||||
url("#{http_stylesheets_path}/#{path}")
|
||||
@ -28,7 +28,7 @@ module Compass::SassExtensions::Functions::Urls
|
||||
elsif Compass.configuration.http_images_path
|
||||
Compass.configuration.http_images_path
|
||||
else
|
||||
Compass.configuration.root_relative(Compass.configuration.images_dir)
|
||||
Compass.configuration.http_root_relative(Compass.configuration.images_dir)
|
||||
end
|
||||
|
||||
# Compute the real path to the image on the file stystem if the images_dir is set.
|
||||
|
Loading…
Reference in New Issue
Block a user