Upgrade notifications for compass rails users to use the compass-rails gem.
This commit is contained in:
parent
c403ac9035
commit
87e57cf6ea
@ -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'
|
||||
|
18
lib/compass/app_integration/rails.rb
Normal file
18
lib/compass/app_integration/rails.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user