diff --git a/lib/compass/app_integration/rails/installer.rb b/lib/compass/app_integration/rails/installer.rb index 2308297c..a81e2469 100644 --- a/lib/compass/app_integration/rails/installer.rb +++ b/lib/compass/app_integration/rails/installer.rb @@ -93,7 +93,7 @@ module Compass %Q{require 'compass' # If you have any compass plugins, require them here. Compass.configuration.parse(File.join(RAILS_ROOT, "config", "compass.rb")) - Compass.configuration.environment = RAILS_ENV.to_sym + Compass.configuration.environment = (defined?(Rails) ? Rails.env : RAILS_ENV).to_sym Compass.configure_sass_plugin! } end