[Rails] Silence a deprecation warning in Rails 3.
This commit is contained in:
parent
b0fbab5455
commit
46be3b27b0
@ -93,7 +93,7 @@ module Compass
|
|||||||
%Q{require 'compass'
|
%Q{require 'compass'
|
||||||
# If you have any compass plugins, require them here.
|
# If you have any compass plugins, require them here.
|
||||||
Compass.configuration.parse(File.join(RAILS_ROOT, "config", "compass.rb"))
|
Compass.configuration.parse(File.join(RAILS_ROOT, "config", "compass.rb"))
|
||||||
Compass.configuration.environment = RAILS_ENV.to_sym
|
Compass.configuration.environment = (defined?(Rails) ? Rails.env : RAILS_ENV).to_sym
|
||||||
Compass.configure_sass_plugin!
|
Compass.configure_sass_plugin!
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user