Better configuration defaults for rails31
This commit is contained in:
parent
2124003550
commit
0c1342746e
@ -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
|
||||
|
@ -10,7 +10,7 @@ module Compass
|
||||
:stand_alone
|
||||
end
|
||||
|
||||
def http_path_without_default
|
||||
def default_http_path
|
||||
"/"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user