diff --git a/lib/props_template/extensions/partial_renderer.rb b/lib/props_template/extensions/partial_renderer.rb index 22e1c75..a8dfdfd 100644 --- a/lib/props_template/extensions/partial_renderer.rb +++ b/lib/props_template/extensions/partial_renderer.rb @@ -82,7 +82,7 @@ def block_opts_to_render_opts(builder, options) pass_opts[:locals] ||= {} pass_opts[:partial] = partial pass_opts[:formats] = [:json] - pass_opts.delete(:handlers) + pass_opts[:handlers] = [:props] if !(String === partial) raise ArgumentError.new(INVALID_PARTIAL_MESSAGE % partial.inspect)