From 4dd7e6cd2b6057eb1c22a41e74082cb01a0b6275 Mon Sep 17 00:00:00 2001 From: nex3 Date: Tue, 16 Jan 2007 21:06:26 +0000 Subject: [PATCH] Fixed failing constant definitions. git-svn-id: svn://hamptoncatlin.com/haml/trunk@283 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/sass/plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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