Class: Ibrain::Mutations::BaseMutation
- Inherits:
-
GraphQL::Schema::RelayClassicMutation
- Object
- GraphQL::Schema::RelayClassicMutation
- Ibrain::Mutations::BaseMutation
- Defined in:
- app/graphql/ibrain/mutations/base_mutation.rb
Instance Method Summary collapse
Instance Method Details
#ready?(args) ⇒ Boolean
14 15 16 17 18 19 20 |
# File 'app/graphql/ibrain/mutations/base_mutation.rb', line 14 def ready?(args) @params = ActionController::Parameters.new( args.to_h.with_indifferent_access.transform_keys(&:underscore) ) @resource = load_resource true end |