Sha256: 8931ac3530f8eabbd99c56c2ae832d49002c925002da9515dddf038487339357

Contents?: true

Size: 364 Bytes

Versions: 15

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module GraphqlDevise
  module MountMethod
    module OperationPreparers
      class ResourceKlassSetter
        def initialize(klass)
          @klass = klass
        end

        def call(operation, **)
          operation.instance_variable_set(:@resource_klass, @klass)

          operation
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.4.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.3.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.2.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.1.1 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.1.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.0.1 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-1.0.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.18.2 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.18.1 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.18.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.17.1 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.17.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.16.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb
graphql_devise-0.15.0 lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb