Module: CompassRails::Configuration::Default
- Defined in:
- lib/compass-rails/configuration/default.rb
Instance Method Summary collapse
- #default_cache_dir ⇒ Object
- #default_css_dir ⇒ Object
- #default_environment ⇒ Object
- #default_extensions_dir ⇒ Object
- #default_fonts_dir ⇒ Object
- #default_http_fonts_path ⇒ Object
- #default_http_generated_images_path ⇒ Object
- #default_http_images_path ⇒ Object
- #default_http_javascripts_path ⇒ Object
- #default_http_path ⇒ Object
- #default_http_stylesheets_path ⇒ Object
- #default_images_dir ⇒ Object
- #default_javascripts_dir ⇒ Object
- #default_project_path ⇒ Object
- #default_sass_dir ⇒ Object
- #project_type_without_default ⇒ Object
Instance Method Details
#default_cache_dir ⇒ Object
57 58 59 |
# File 'lib/compass-rails/configuration/default.rb', line 57 def default_cache_dir File.join("tmp", "sass-cache") end |
#default_css_dir ⇒ Object
13 14 15 |
# File 'lib/compass-rails/configuration/default.rb', line 13 def default_css_dir File.join("public", "stylesheets") end |
#default_environment ⇒ Object
69 70 71 |
# File 'lib/compass-rails/configuration/default.rb', line 69 def default_environment CompassRails.env end |
#default_extensions_dir ⇒ Object
53 54 55 |
# File 'lib/compass-rails/configuration/default.rb', line 53 def default_extensions_dir File.join("vendor", "plugins", "compass_extensions") end |
#default_fonts_dir ⇒ Object
21 22 23 |
# File 'lib/compass-rails/configuration/default.rb', line 21 def default_fonts_dir File.join("public", "fonts") end |
#default_http_fonts_path ⇒ Object
45 46 47 |
# File 'lib/compass-rails/configuration/default.rb', line 45 def default_http_fonts_path http_root_relative "fonts" end |
#default_http_generated_images_path ⇒ Object
35 36 37 38 39 |
# File 'lib/compass-rails/configuration/default.rb', line 35 def default_http_generated_images_path # Relies on the fact that this will be loaded after the "normal" # defaults, so that method_missing finds http_root_relative http_root_relative "images" end |
#default_http_images_path ⇒ Object
29 30 31 32 33 |
# File 'lib/compass-rails/configuration/default.rb', line 29 def default_http_images_path # Relies on the fact that this will be loaded after the "normal" # defaults, so that method_missing finds http_root_relative http_root_relative "images" end |
#default_http_javascripts_path ⇒ Object
41 42 43 |
# File 'lib/compass-rails/configuration/default.rb', line 41 def default_http_javascripts_path http_root_relative "javascripts" end |
#default_http_path ⇒ Object
65 66 67 |
# File 'lib/compass-rails/configuration/default.rb', line 65 def default_http_path "/" # XXX Where is/was this stored in the Rails config? end |
#default_http_stylesheets_path ⇒ Object
49 50 51 |
# File 'lib/compass-rails/configuration/default.rb', line 49 def default_http_stylesheets_path http_root_relative "stylesheets" end |
#default_images_dir ⇒ Object
17 18 19 |
# File 'lib/compass-rails/configuration/default.rb', line 17 def default_images_dir File.join("public", "images") end |
#default_javascripts_dir ⇒ Object
25 26 27 |
# File 'lib/compass-rails/configuration/default.rb', line 25 def default_javascripts_dir File.join("public", "javascripts") end |
#default_project_path ⇒ Object
61 62 63 |
# File 'lib/compass-rails/configuration/default.rb', line 61 def default_project_path project_path = CompassRails.root end |
#default_sass_dir ⇒ Object
9 10 11 |
# File 'lib/compass-rails/configuration/default.rb', line 9 def default_sass_dir File.join("app", "assets", "stylesheets") end |
#project_type_without_default ⇒ Object
5 6 7 |
# File 'lib/compass-rails/configuration/default.rb', line 5 def project_type_without_default :rails end |