Skip to content

Commit f8fe839

Browse files
chrisrbnelsonChristopher Nelson
andauthored
Dup as_json options if frozen (#625)
Co-authored-by: Christopher Nelson <chris@chrisnelson.au>
1 parent 0b98cd9 commit f8fe839

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/quickbooks/model/base_model.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def to_xml_inject_ns(model_name, options = {})
3030

3131
def as_json(options = nil)
3232
options = {} if options.nil?
33+
options = options.dup if options.frozen?
3334
except_conditions = ["roxml_references"]
3435
except_conditions << options[:except]
3536
options[:except] = except_conditions.flatten.uniq.compact

0 commit comments

Comments
 (0)