Class: KnockOnce::Configuration
- Inherits:
-
Object
- Object
- KnockOnce::Configuration
- Defined in:
- lib/knock_once.rb
Instance Attribute Summary collapse
-
#password_token_expiry ⇒ Object
Returns the value of attribute password_token_expiry.
-
#reset_token_length ⇒ Object
Returns the value of attribute reset_token_length.
-
#user_params ⇒ Object
Returns the value of attribute user_params.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/knock_once.rb', line 9 def initialize @user_params = :user, :email, :current_password, :password, :password_confirmation @password_token_expiry = 1.hour.from_now @reset_token_length = 18 end |
Instance Attribute Details
#password_token_expiry ⇒ Object
Returns the value of attribute password_token_expiry.
6 7 8 |
# File 'lib/knock_once.rb', line 6 def password_token_expiry @password_token_expiry end |
#reset_token_length ⇒ Object
Returns the value of attribute reset_token_length.
7 8 9 |
# File 'lib/knock_once.rb', line 7 def reset_token_length @reset_token_length end |
#user_params ⇒ Object
Returns the value of attribute user_params.
5 6 7 |
# File 'lib/knock_once.rb', line 5 def user_params @user_params end |