Module: CompassRails::Configuration
- Defined in:
- lib/compass-rails/configuration.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_preferred_syntax ⇒ Object
- #default_project_path ⇒ Object
- #default_sass_dir ⇒ Object
- #default_sprite_load_path ⇒ Object
- #project_type_without_default ⇒ Object
Instance Method Details
#default_cache_dir ⇒ Object
65 66 67 |
# File 'lib/compass-rails/configuration.rb', line 65 def default_cache_dir File.join("tmp", "sass-cache") end |
#default_css_dir ⇒ Object
15 16 17 |
# File 'lib/compass-rails/configuration.rb', line 15 def default_css_dir File.join('public', CompassRails.prefix) end |
#default_environment ⇒ Object
73 74 75 |
# File 'lib/compass-rails/configuration.rb', line 73 def default_environment Rails.env end |
#default_extensions_dir ⇒ Object
61 62 63 |
# File 'lib/compass-rails/configuration.rb', line 61 def default_extensions_dir File.join("vendor", "plugins", "compass_extensions") end |
#default_fonts_dir ⇒ Object
7 8 9 |
# File 'lib/compass-rails/configuration.rb', line 7 def default_fonts_dir File.join("app", "assets", "fonts") end |
#default_http_fonts_path ⇒ Object
31 32 33 |
# File 'lib/compass-rails/configuration.rb', line 31 def default_http_fonts_path "#{top_level.http_path}" end |
#default_http_generated_images_path ⇒ Object
55 56 57 58 59 |
# File 'lib/compass-rails/configuration.rb', line 55 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
23 24 25 |
# File 'lib/compass-rails/configuration.rb', line 23 def default_http_images_path "#{top_level.http_path}" end |
#default_http_javascripts_path ⇒ Object
27 28 29 |
# File 'lib/compass-rails/configuration.rb', line 27 def default_http_javascripts_path "#{top_level.http_path}" end |
#default_http_path ⇒ Object
19 20 21 |
# File 'lib/compass-rails/configuration.rb', line 19 def default_http_path File.join(CompassRails.prefix) end |
#default_http_stylesheets_path ⇒ Object
35 36 37 |
# File 'lib/compass-rails/configuration.rb', line 35 def default_http_stylesheets_path "#{top_level.http_path}" end |
#default_images_dir ⇒ Object
3 4 5 |
# File 'lib/compass-rails/configuration.rb', line 3 def default_images_dir File.join("app", "assets", "images") end |
#default_javascripts_dir ⇒ Object
11 12 13 |
# File 'lib/compass-rails/configuration.rb', line 11 def default_javascripts_dir File.join("app", "assets", "javascripts") end |
#default_preferred_syntax ⇒ Object
39 40 41 |
# File 'lib/compass-rails/configuration.rb', line 39 def default_preferred_syntax ::Rails.application.config.sass.preferred_syntax rescue nil end |
#default_project_path ⇒ Object
69 70 71 |
# File 'lib/compass-rails/configuration.rb', line 69 def default_project_path Rails.root end |
#default_sass_dir ⇒ Object
51 52 53 |
# File 'lib/compass-rails/configuration.rb', line 51 def default_sass_dir File.join("app", "assets", "stylesheets") end |
#default_sprite_load_path ⇒ Object
43 44 45 |
# File 'lib/compass-rails/configuration.rb', line 43 def default_sprite_load_path CompassRails.sprockets.paths end |
#project_type_without_default ⇒ Object
47 48 49 |
# File 'lib/compass-rails/configuration.rb', line 47 def project_type_without_default :rails end |