Skip to content

Commit 7e16adf

Browse files
committed
Stop mutating options in set! method
1 parent 8474b41 commit 7e16adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jbuilder/jbuilder_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def set!(name, object = BLANK, *args)
133133
options = args.first
134134

135135
if args.one? && _partial_options?(options)
136-
_set_inline_partial name, object, options
136+
_set_inline_partial name, object, options.dup
137137
else
138138
super
139139
end

0 commit comments

Comments
 (0)