[Rails] Silence a deprecation warning in Rails 3.

This commit is contained in:
Chris Eppstein 2010-01-18 17:36:36 -08:00
parent b0fbab5455
commit 46be3b27b0

View File

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