Created
November 21, 2011 23:14
-
-
Save brandon-beacher/1384311 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Rails.env.production? | |
Sass::Plugin.options.merge!( | |
:template_location => 'public/stylesheets/sass', | |
:css_location => 'tmp/stylesheets' | |
) | |
Rails.configuration.middleware.delete('Sass::Plugin::Rack') | |
Rails.configuration.middleware.insert_before('Rack::Sendfile', 'Sass::Plugin::Rack') | |
Rails.configuration.middleware.insert_before('Rack::Sendfile', 'Rack::Static', | |
:urls => ['/stylesheets'], | |
:root => "#{Rails.root}/tmp") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
magic!