diff --git a/config/initializers/haml.rb b/config/initializers/haml.rb index 47ef4ea26e..26884716c9 100644 --- a/config/initializers/haml.rb +++ b/config/initializers/haml.rb @@ -1,5 +1,5 @@ require 'haml' - -if Gem::Version.create(Haml::VERSION) < Gem::Version.create('5.0.0.beta.2') +require 'haml/template' +if Haml::Options.buffer_option_keys.include?(:ugly) Haml::Template.options[:ugly] = true end