Skip to content

Commit

Permalink
Ruby 3 upgrade: fix DetailedSchemaErrors spec failures (#11983)
Browse files Browse the repository at this point in the history
* fix DetailedSchemaErrors spec failures

* Alternative resolution for modifying frozen hash

---------

Co-authored-by: Eric Boehs <eric@boehs.com>
  • Loading branch information
holdenhinkle and ericboehs authored Mar 6, 2023
1 parent 02ccaf7 commit 4260c8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/common/exceptions/detailed_schema_errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def errors
else
I18n.t('common.exceptions.validation_errors')
end
error.merge! source: { pointer: pointer }
SerializableError.new error
SerializableError.new error.merge source: { pointer: pointer }
end
end

Expand Down

0 comments on commit 4260c8d

Please sign in to comment.