diff --git a/lib/compass.rb b/lib/compass.rb index 081b0538..97ec92b7 100644 --- a/lib/compass.rb +++ b/lib/compass.rb @@ -30,3 +30,6 @@ end %w(configuration frameworks app_integration actions compiler).each do |lib| require "compass/#{lib}" end + +# for rails upgrade warnings in 0.12 +require 'compass/app_integration/rails' diff --git a/lib/compass/app_integration/rails.rb b/lib/compass/app_integration/rails.rb new file mode 100644 index 00000000..9b64f4be --- /dev/null +++ b/lib/compass/app_integration/rails.rb @@ -0,0 +1,18 @@ +module Compass + module AppIntegration + module Rails + extend self + def initialize! + Compass::Util.compass_warn("WARNING: Please remove the call to Compass::AppIntegration::Rails.initialize! from #{caller[0].sub(/:.*$/,'')};\nWARNING: This is done automatically now. If this is default compass initializer you can just remove the file.") + end + def root + Compass::Util.compass_warn("WARNING: Please remove the call to Compass::AppIntegration::Rails.root from #{caller[0].sub(/:.*$/,'')};\nWARNING: This is done automatically now. If this is default compass initializer you can just remove the file.") + ::Rails.root + end + def env + Compass::Util.compass_warn("WARNING: Please remove the call to Compass::AppIntegration::Rails.env from #{caller[0].sub(/:.*$/,'')};\nWARNING: This is done automatically now. If this is default compass initializer you can just remove the file.") + ::Rails.env + end + end + end +end