Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_union.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aeafbf850205d3f90f04d97e3fbc62ca1df53d3a (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module Types
  class BaseUnion < GraphQL::Schema::Union
    def self.authorized?(object, context)
      resolve_type(object, context).authorized?(object, context)
    end
  end
end