diff --git a/lib/sass/plugin.rb b/lib/sass/plugin.rb index 4227bd6a..fa698b82 100644 --- a/lib/sass/plugin.rb +++ b/lib/sass/plugin.rb @@ -2,8 +2,8 @@ require 'sass/engine' require 'rubygems' require 'action_controller' -RAILS_ROOT ||= '.' -RAILS_ENV ||= 'production' +RAILS_ROOT = '. 'unless Kernel.const_defined?('RAILS_ROOT') +RAILS_ENV = 'production' unless Kernel.const_defined?('RAILS_ENV') module Sass # This module contains methods that ActionController calls