Sha256: e47562fd2b58e45c00c62e8d99503f007c7d6879e7c9b7e34228958762b584ce

Contents?: true

Size: 358 Bytes

Versions: 11

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

module GraphqlDevise
  module MountMethod
    module OperationPreparers
      class ResourceNameSetter
        def initialize(name)
          @name = name
        end

        def call(operation, **)
          operation.instance_variable_set(:@resource_name, @name)

          operation
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
graphql_devise-0.14.3 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.14.2 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.14.1 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.14.0 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.6 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.5 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.4 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.3 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.2 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.1 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.13.0 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb