diff --git a/VERSION b/VERSION index e4604e3..be94e6f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.1 +3.2.2 diff --git a/lib/rdf/rdfa/writer.rb b/lib/rdf/rdfa/writer.rb index 50ed098..490dc4f 100644 --- a/lib/rdf/rdfa/writer.rb +++ b/lib/rdf/rdfa/writer.rb @@ -764,7 +764,7 @@ def hamlify(template, locals = {}) log_debug {"hamlify locals: #{locals.inspect}"} haml_opts = @options[:haml_options] || HAML_OPTIONS - haml_runner = if Haml.const_defined?(:Template) + haml_runner = if Haml::VERSION >= "6" Haml::Template.new(**haml_opts) {template} else Haml::Engine.new(template, **haml_opts)