Class: Mutations::AuthenticatedMutation

Inherits:
BaseMutation
  • Object
show all
Defined in:
app/graphql/mutations/authenticated_mutation.rb

Class Method Summary collapse

Class Method Details

.authorized?(object, context) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/graphql/mutations/authenticated_mutation.rb', line 3

def self.authorized?(object, context)
  context[:current_user].present?
end