Sha256: 8ceffd8d54f9a5d9e7f5e0fd7256ad3a84e1222ee2f1066651848f89df96b86a

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

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

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

          operation
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql_devise-0.11.4 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.11.3 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.11.2 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.11.1 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb
graphql_devise-0.11.0 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb