[Rails] bug fix: the new rails initializer did not find old configuration files (config/compass.config)

This commit is contained in:
Chris Eppstein 2010-08-06 11:36:00 -07:00
parent 973a568c1d
commit 46b4ce1679

View File

@ -35,8 +35,8 @@ module Compass
end end
def initialize! def initialize!
rails_root = (defined?(Rails) ? Rails.root : RAILS_ROOT).to_s config_file = Compass.detect_configuration_file(root)
Compass.add_project_configuration(File.join(root, "config", "compass.rb")) Compass.add_project_configuration(config_file)
Compass.discover_extensions! Compass.discover_extensions!
Compass.configure_sass_plugin! Compass.configure_sass_plugin!
Compass.handle_configuration_change! Compass.handle_configuration_change!