1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/sass/rails3_shim.rb
Nathan Weizenbaum 9bf8c1644f Bring back the shims under lib/sass.
These were accidentally nuked during the merge with master.
2010-10-11 20:27:16 -07:00

16 lines
418 B
Ruby

unless Haml::Util.try_sass
# Since Bundler sets up our gem environment,
# Sass will only be loadable from gem
# if gem "sass" has been set.
Haml::Util.haml_warn(<<WARNING)
Haml will no longer automatically load Sass in Haml 3.2.0.
Please add gem 'sass' to your Gemfile.
WARNING
end
require 'sass/plugin/configuration'
ActiveSupport.on_load(:before_initialize) do
require 'sass'
require 'sass/plugin'
end