Class: ActiveSupport::LegacyKeyGenerator
- Defined in:
- activesupport/lib/active_support/key_generator.rb
Overview
:nodoc:
Constant Summary collapse
- SECRET_MIN_LENGTH =
Characters
30
Instance Method Summary collapse
- #generate_key(salt) ⇒ Object
-
#initialize(secret) ⇒ LegacyKeyGenerator
constructor
A new instance of LegacyKeyGenerator.
Constructor Details
#initialize(secret) ⇒ LegacyKeyGenerator
Returns a new instance of LegacyKeyGenerator.
45 46 47 48 |
# File 'activesupport/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 'activesupport/lib/active_support/key_generator.rb', line 50 def generate_key(salt) @secret end |