lib/roda/plugins/render.rb in roda-3.17.0 vs lib/roda/plugins/render.rb in roda-3.18.0
- old
+ new
@@ -340,13 +340,13 @@
end
cached_template(opts) do
opts = found_template_opts || find_template(opts)
template_opts = render_opts[:template_opts]
if engine_opts = render_opts[:engine_opts][opts[:engine]]
- template_opts = Hash[template_opts].merge!(engine_opts)
+ template_opts = template_opts.merge(engine_opts)
end
if current_template_opts = opts[:template_opts]
- template_opts = Hash[template_opts].merge!(current_template_opts)
+ template_opts = template_opts.merge(current_template_opts)
end
opts[:template_class].new(opts[:path], 1, template_opts, &opts[:template_block])
end
end