Skip to content

Instantly share code, notes, and snippets.

@jlong
Created Jan 20, 2010
Embed
What would you like to do?
put this file in config/initializers
require 'sass'
if /production|staging/.match(RAILS_ENV)
# Compress CSS (a small file is preferable in production)
Sass::Plugin.options[:style] = :compressed
else
# Expand CSS
Sass::Plugin.options[:style] = :expanded
# Generate CSS from SASS every time a controller is accessed
Sass::Plugin.options[:always_update] = true
# Insert comments in the CSS about the line numbers of the Sass source
Sass::Plugin.options[:line_comments] = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment