Skip to content

Commit

Permalink
feature: use explicit handlers :props for partials rendering (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kortirso authored Jul 25, 2024
1 parent 5f2e2e5 commit b6a6d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/props_template/extensions/partial_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6a6d29

Please sign in to comment.