Class: ActionPolicy::GraphQL::AuthorizedField::Extension
- Inherits:
-
GraphQL::Schema::FieldExtension
- Object
- GraphQL::Schema::FieldExtension
- ActionPolicy::GraphQL::AuthorizedField::Extension
- Defined in:
- lib/action_policy/graphql/authorized_field.rb
Direct Known Subclasses
AuthorizeExtension, AuthorizeFieldExtension, PreauthorizeExtension, ScopeExtension
Instance Method Summary collapse
Instance Method Details
#extract_option(key, &default) ⇒ Object
17 18 19 20 21 |
# File 'lib/action_policy/graphql/authorized_field.rb', line 17 def extract_option(key, &default) value = .fetch(key, &default) .delete key value end |