From 46b4ce1679cc964a6b8d7ad33eaa419a25761d64 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 6 Aug 2010 11:36:00 -0700 Subject: [PATCH] [Rails] bug fix: the new rails initializer did not find old configuration files (config/compass.config) --- lib/compass/app_integration/rails.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compass/app_integration/rails.rb b/lib/compass/app_integration/rails.rb index 430e4c2c..87ba573f 100644 --- a/lib/compass/app_integration/rails.rb +++ b/lib/compass/app_integration/rails.rb @@ -35,8 +35,8 @@ module Compass end def initialize! - rails_root = (defined?(Rails) ? Rails.root : RAILS_ROOT).to_s - Compass.add_project_configuration(File.join(root, "config", "compass.rb")) + config_file = Compass.detect_configuration_file(root) + Compass.add_project_configuration(config_file) Compass.discover_extensions! Compass.configure_sass_plugin! Compass.handle_configuration_change!