Skip to content

Instantly share code, notes, and snippets.

@viktorkelemen
Created December 6, 2012 02:36
Show Gist options
  • Select an option

  • Save viktorkelemen/4221384 to your computer and use it in GitHub Desktop.

Select an option

Save viktorkelemen/4221384 to your computer and use it in GitHub Desktop.
Using Rails.env in SASS
module Sass::Script::Functions
def development()
Sass::Script::Bool.new(Rails.env.development?)
end
def production()
Sass::Script::Bool.new(Rails.env.production?)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment