Skip to content

Instantly share code, notes, and snippets.

@castus
Created November 9, 2012 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save castus/4044953 to your computer and use it in GitHub Desktop.
Save castus/4044953 to your computer and use it in GitHub Desktop.
[Ruby,Sass] Workaround for sass-rails gem error, when trying to get :resolver from nil
def resolver
puts options[:custom].inspect
# options[:custom][:resolver]
Resolver.new(CompassRails.context)
end
@castus
Copy link
Author

castus commented Nov 12, 2012

Actually this should be:

if ::Rails::env == "production"
  options[:custom][:resolver]
else
  Resolver.new(CompassRails.context)
end

@tamvm
Copy link

tamvm commented May 6, 2014

Which file should I put these settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment