FieldDefinitions fails to correctly autocorrect in the following case:
class UserType < BaseType
field :first_name, String, null: true, description: <<~DESC.squish
First name.
DESC
field :last_name, String, null: true
def last_name
object.contact_data.last_name
end
def first_name
object.contact_data.first_name
end
end
It autocorrects to:
class UserType < BaseType
field :first_name, String, null: true, description: <<~DESC.squish
def first_name
object.contact_data.first_name
end
First name.
DESC
field :last_name, String, null: true
def last_name
object.contact_data.last_name
end
end
FieldDefinitions
fails to correctly autocorrect in the following case:It autocorrects to: