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.



43
44
45
46
# File 'lib/active_support/key_generator.rb', line 43

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

Instance Method Details

#generate_key(salt) ⇒ Object



48
49
50
# File 'lib/active_support/key_generator.rb', line 48

def generate_key(salt)
  @secret
end