From d529c6b6fdb6b124b0c45dd8cd54c53c5face5d8 Mon Sep 17 00:00:00 2001 From: Jared Ning Date: Thu, 11 May 2017 09:30:16 -0500 Subject: [PATCH] WIP: Update HAML. --- config/initializers/haml.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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