Upgrade notifications for compass rails users to use the compass-rails gem.

This commit is contained in:
Chris Eppstein 2012-02-02 13:59:20 -08:00
parent c403ac9035
commit 87e57cf6ea
2 changed files with 21 additions and 0 deletions

View File

@ -30,3 +30,6 @@ end
%w(configuration frameworks app_integration actions compiler).each do |lib| %w(configuration frameworks app_integration actions compiler).each do |lib|
require "compass/#{lib}" require "compass/#{lib}"
end end
# for rails upgrade warnings in 0.12
require 'compass/app_integration/rails'

View File

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