Better configuration defaults for rails31

This commit is contained in:
Chris Eppstein 2011-07-18 22:00:06 -07:00
parent 2124003550
commit 0c1342746e
2 changed files with 21 additions and 1 deletions

View File

@ -21,6 +21,26 @@ module Compass
def default_javascripts_dir def default_javascripts_dir
File.join("app", "assets", "javascripts") File.join("app", "assets", "javascripts")
end 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 end
module ConfigurationDefaults module ConfigurationDefaults

View File

@ -10,7 +10,7 @@ module Compass
:stand_alone :stand_alone
end end
def http_path_without_default def default_http_path
"/" "/"
end end