From bbe8366350f8aa01cca749b74b62b45203d82348 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 3 Jul 2009 18:45:19 -0700 Subject: [PATCH] [Configuration] A more logical and consistent approach to http path locations. --- lib/compass/configuration.rb | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/compass/configuration.rb b/lib/compass/configuration.rb index 3b7989c5..469c9fd3 100644 --- a/lib/compass/configuration.rb +++ b/lib/compass/configuration.rb @@ -120,21 +120,6 @@ module Compass end end - def relative_assets? - # the http_images_path is deprecated, but here for backwards compatibility. - relative_assets || http_images_path == :relative - end - - def comment_for_relative_assets - unless relative_assets - %q{# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true -} - else - "" - end - end - def default_output_style if environment == :development :expanded @@ -159,9 +144,8 @@ module Compass end end - def root_relative(path) - hp = http_path || default_http_path - hp = hp[0..-2] if hp[-1..-1] == "/" + def mk_http_path(path) + hp = http_path[0..-2] if http_path[-1..-1] == "/" "#{hp}/#{path}" end