Skip to content

Commit

Permalink
Check the new class instead of its superclass to see if it responds t…
Browse files Browse the repository at this point in the history
…o the value method
  • Loading branch information
phedinkus committed Feb 11, 2025
1 parent b664062 commit 149b759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/schema/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def define_type(type, type_resolver)
enum_value["name"],
description: enum_value["description"],
deprecation_reason: enum_value["deprecationReason"],
value_method: GraphQL::Schema::Enum.respond_to?(enum_value["name"].downcase) ? false : nil
value_method: self.respond_to?(enum_value["name"].downcase) ? false : nil
)
end
end
Expand Down

0 comments on commit 149b759

Please sign in to comment.