lib/sass/rails/railtie.rb in sass-rails-3.1.0.rc.2 vs lib/sass/rails/railtie.rb in sass-rails-3.1.0.rc.3
- old
+ new
@@ -10,10 +10,14 @@
config.sass.cache = true
# Read sass cache files from tmp/sass-cache for performance
config.sass.read_cache = true
# Display line comments above each selector as a debugging aid
config.sass.line_comments = true
+ # Initialize the load paths to an empty array
+ config.sass.load_paths = []
+ # Send Sass logs to Rails.logger
+ config.sass.logger = Sass::Rails::Logger.new
initializer :setup_sass do |app|
# Only emit one kind of syntax because though we have registered two kinds of generators
syntax = app.config.sass.preferred_syntax.to_sym
alt_syntax = syntax == :sass ? "scss" : "sass"
@@ -28,16 +32,19 @@
# Establish configuration defaults that are evironmental in nature
if config.sass.full_exception.nil?
# Display a stack trace in the css output when in development-like environments.
config.sass.full_exception = app.config.consider_all_requests_local
end
-
end
initializer :setup_compression do |app|
if app.config.assets.compress
# Use sass's css_compressor
app.config.assets.css_compressor = CssCompressor.new
end
+ end
+
+ config.after_initialize do |app|
+ Sass::logger = app.config.sass.logger
end
end
end