Class: ActiveAdmin::GraphQL::RunActionPayload

Inherits:
GraphQL::Schema::Object
  • Object
show all
Defined in:
lib/active_admin/graphql/run_action_payload.rb

Overview

Return type for mutations that run batch, member, or collection controller actions.

Defined Under Namespace

Classes: Result

Class Method Summary collapse

Class Method Details

.visible?(context) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
# File 'lib/active_admin/graphql/run_action_payload.rb', line 9

def self.visible?(context)
  hook = context[:namespace]&.graphql_schema_visible
  return super if hook.nil?

  super && !!hook.call(context, {kind: :run_action_payload})
end