Class: ActiveSupport::LegacyKeyGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/key_generator.rb

Overview

:nodoc:

Constant Summary collapse

SECRET_MIN_LENGTH =

Characters

30

Instance Method Summary collapse

Constructor Details

#initialize(secret) ⇒ LegacyKeyGenerator

Returns a new instance of LegacyKeyGenerator.



45
46
47
48
# File 'lib/active_support/key_generator.rb', line 45

def initialize(secret)
  ensure_secret_secure(secret)
  @secret = secret
end

Instance Method Details

#generate_key(salt) ⇒ Object



50
51
52
# File 'lib/active_support/key_generator.rb', line 50

def generate_key(salt)
  @secret
end