Skip to content

Commit

Permalink
Update lib/graphql/schema/enum.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo authored Jan 28, 2025
1 parent 21dc28a commit 6a503c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/schema/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def generate_value_method(value, configured_value_method)
value_method_name = configured_value_method || value.graphql_name.downcase

if respond_to?(value_method_name.to_sym)
$stderr << "Failed to define value method for :#{value_method_name}, because " \
warn "Failed to define value method for :#{value_method_name}, because " \
"#{value.owner.name} already responds to that method. Use `value_name:` to override the method name."
return
end
Expand Down

0 comments on commit 6a503c8

Please sign in to comment.