Better constant checking.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@284 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-01-16 21:13:55 +00:00
parent 4dd7e6cd2b
commit 1fe7cdfba4
1 changed files with 2 additions and 2 deletions

View File

@ -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