Class: Ibrain::Types::BaseInputObject

Inherits:
GraphQL::Schema::InputObject
  • Object
show all
Defined in:
app/graphql/ibrain/types/base_input_object.rb

Instance Method Summary collapse

Instance Method Details

#to_paramsObject



8
9
10
11
12
# File 'app/graphql/ibrain/types/base_input_object.rb', line 8

def to_params
  ActionController::Parameters.new(
    to_h.with_indifferent_access.transform_keys(&:underscore)
  )
end