diff --git a/lib/sass/plugin.rb b/lib/sass/plugin.rb index fa698b82..a41f687e 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 = '. 'unless Kernel.const_defined?('RAILS_ROOT') -RAILS_ENV = 'production' unless Kernel.const_defined?('RAILS_ENV') +RAILS_ROOT = '. 'unless self.class.const_defined?('RAILS_ROOT') +RAILS_ENV = 'production' unless self.class.const_defined?('RAILS_ENV') module Sass # This module contains methods that ActionController calls