lib/graphql/schema/interface.rb in graphql-2.0.16 vs lib/graphql/schema/interface.rb in graphql-2.0.17
- old
+ new
@@ -26,19 +26,9 @@
# @see {Schema::Warden} hides interfaces without visible implementations
def visible?(context)
true
end
- # The interface is accessible if any of its possible types are accessible
- def accessible?(context)
- context.schema.possible_types(self, context).each do |type|
- if context.schema.accessible?(type, context)
- return true
- end
- end
- false
- end
-
def type_membership_class(membership_class = nil)
if membership_class
@type_membership_class = membership_class
else
@type_membership_class || find_inherited_value(:type_membership_class, GraphQL::Schema::TypeMembership)