lib/graphql/sugar.rb in graphql-sugar-0.1.5 vs lib/graphql/sugar.rb in graphql-sugar-0.1.6

- old
+ new

@@ -56,10 +56,10 @@ GraphQL::ID_TYPE else GRAPHQL_TYPE_MAPPING[column_details.type] || GraphQL::STRING_TYPE end - type = type.to_list_type if column_details.array? + type = type.to_list_type if column_details.respond_to?(:array?) && column_details.array? if enforce_non_null is_not_null = !column_details.null is_not_null ||= Sugar.validates_presence?(model_class, column_name) is_not_null ||= Sugar.validates_presence?(model_class, belongs_to_association.name) if belongs_to_association.present?