lib/rails/graphql/directive.rb
# A secure way to specify the locations of a the directive
A secure way to specify the locations of a the directive
A secure way to specify the locations of a the directive
def placed_on(*list)
          validate_locations!(list)
          @locations = (superclass.try(:locations)&.dup || Set.new) \
            unless defined?(@locations)
          @locations.merge(list)
        end
def placed_on ( * list ) validate_locations! ( list ) @locations = ( superclass . try ( :locations ) &. dup || Set . new ) unless defined? ( @locations ) @locations . merge ( list ) end
A secure way to specify the locations of a the directive
A secure way to specify the locations of a the directive
list