Method: Devise::TokenGenerator#initialize

Defined in:
lib/devise/token_generator.rb

#initialize(key_generator, digest = "SHA256") ⇒ TokenGenerator

Returns a new instance of TokenGenerator.


7
8
9
10
# File 'lib/devise/token_generator.rb', line 7

def initialize(key_generator, digest = "SHA256")
  @key_generator = key_generator
  @digest = digest
end