diff --git a/lib/compass/app_integration/rails/configuration_defaults.rb b/lib/compass/app_integration/rails/configuration_defaults.rb index 06aaf311..2170f0f7 100644 --- a/lib/compass/app_integration/rails/configuration_defaults.rb +++ b/lib/compass/app_integration/rails/configuration_defaults.rb @@ -21,6 +21,26 @@ module Compass def default_javascripts_dir File.join("app", "assets", "javascripts") end + + def default_http_path + ::Rails.application.config.assets.prefix + end + + def default_http_images_path + "#{top_level.http_path}" + end + + def default_http_javascripts_path + "#{top_level.http_path}" + end + + def default_http_fonts_path + "#{top_level.http_path}" + end + + def default_http_stylesheets_path + "#{top_level.http_path}" + end end module ConfigurationDefaults diff --git a/lib/compass/configuration/defaults.rb b/lib/compass/configuration/defaults.rb index 236ce672..403b185c 100644 --- a/lib/compass/configuration/defaults.rb +++ b/lib/compass/configuration/defaults.rb @@ -10,7 +10,7 @@ module Compass :stand_alone end - def http_path_without_default + def default_http_path "/" end