Method: GraphQL::Schema::Member::Scoped#reauthorize_scoped_objects

Defined in:
lib/graphql/schema/member/scoped.rb

#reauthorize_scoped_objects(new_value = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/graphql/schema/member/scoped.rb', line 19

def reauthorize_scoped_objects(new_value = nil)
  if new_value.nil?
    if @reauthorize_scoped_objects != nil
      @reauthorize_scoped_objects
    else
      find_inherited_value(:reauthorize_scoped_objects, true)
    end
  else
    @reauthorize_scoped_objects = new_value
  end
end