Module: Rails::GraphQL::Helpers::WithArguments::ClassMethods
- Defined in:
- lib/rails/graphql/helpers/with_arguments.rb
Instance Method Summary collapse
Instance Method Details
#inherited(subclass) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/rails/graphql/helpers/with_arguments.rb', line 29 def inherited(subclass) super if defined? super return if arguments.blank? new_arguments = Helpers.dup_all_with_owner(arguments.transform_values, subclass) subclass.instance_variable_set(:@arguments, new_arguments) end |