Skip to content

Commit

Permalink
Merge pull request #4701 from Shopify/mtkac/change-invalid-object-mes…
Browse files Browse the repository at this point in the history
…sage

Change `INVALID_OBJECT_MESSAGE` to omit `to_h` and `to_unsafe_h`
  • Loading branch information
rmosolgo authored Nov 21, 2023
2 parents 3a82807 + d3e82cc commit b8948d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/schema/input_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def kind
end

# @api private
INVALID_OBJECT_MESSAGE = "Expected %{object} to be a key-value object responding to `to_h` or `to_unsafe_h`."
INVALID_OBJECT_MESSAGE = "Expected %{object} to be a key-value object."

def validate_non_null_input(input, ctx, max_errors: nil)
warden = ctx.warden
Expand Down

0 comments on commit b8948d5

Please sign in to comment.