Sha256: 74cebc65710393597eed5f0ef30dba50ff35d629a241cfd12e12486f9538efb4

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 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)

          operation
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
graphql_devise-0.12.0 lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb