1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

removed spaces inside square brackets

This commit is contained in:
Kosmas Chatzimichalis 2015-02-17 13:25:09 +01:00 committed by Carlos Antonio da Silva
parent d1d5996b6b
commit 1ab2d51308
2 changed files with 10 additions and 10 deletions

View file

@ -71,7 +71,7 @@ module Devise
# Keys used when authenticating a user. # Keys used when authenticating a user.
mattr_accessor :authentication_keys mattr_accessor :authentication_keys
@@authentication_keys = [ :email ] @@authentication_keys = [:email]
# Request keys used when authenticating a user. # Request keys used when authenticating a user.
mattr_accessor :request_keys mattr_accessor :request_keys
@ -79,7 +79,7 @@ module Devise
# Keys that should be case-insensitive. # Keys that should be case-insensitive.
mattr_accessor :case_insensitive_keys mattr_accessor :case_insensitive_keys
@@case_insensitive_keys = [ :email ] @@case_insensitive_keys = [:email]
# Keys that should have whitespace stripped. # Keys that should have whitespace stripped.
mattr_accessor :strip_whitespace_keys mattr_accessor :strip_whitespace_keys
@ -134,7 +134,7 @@ module Devise
# Defines which key will be used when confirming an account. # Defines which key will be used when confirming an account.
mattr_accessor :confirmation_keys mattr_accessor :confirmation_keys
@@confirmation_keys = [ :email ] @@confirmation_keys = [:email]
# Defines if email should be reconfirmable. # Defines if email should be reconfirmable.
# False by default for backwards compatibility. # False by default for backwards compatibility.
@ -165,7 +165,7 @@ module Devise
# Defines which key will be used when locking and unlocking an account # Defines which key will be used when locking and unlocking an account
mattr_accessor :unlock_keys mattr_accessor :unlock_keys
@@unlock_keys = [ :email ] @@unlock_keys = [:email]
# Defines which strategy can be used to unlock an account. # Defines which strategy can be used to unlock an account.
# Values: :email, :time, :both # Values: :email, :time, :both
@ -182,7 +182,7 @@ module Devise
# Defines which key will be used when recovering the password for an account # Defines which key will be used when recovering the password for an account
mattr_accessor :reset_password_keys mattr_accessor :reset_password_keys
@@reset_password_keys = [ :email ] @@reset_password_keys = [:email]
# Time interval you can reset your password with a reset password key # Time interval you can reset your password with a reset password key
mattr_accessor :reset_password_within mattr_accessor :reset_password_within

View file

@ -47,12 +47,12 @@ Devise.setup do |config|
# Configure which authentication keys should be case-insensitive. # Configure which authentication keys should be case-insensitive.
# These keys will be downcased upon creating or modifying a user and when used # These keys will be downcased upon creating or modifying a user and when used
# to authenticate or find a user. Default is :email. # to authenticate or find a user. Default is :email.
config.case_insensitive_keys = [ :email ] config.case_insensitive_keys = [:email]
# Configure which authentication keys should have whitespace stripped. # Configure which authentication keys should have whitespace stripped.
# These keys will have whitespace before and after removed upon creating or # These keys will have whitespace before and after removed upon creating or
# modifying a user and when used to authenticate or find a user. Default is :email. # modifying a user and when used to authenticate or find a user. Default is :email.
config.strip_whitespace_keys = [ :email ] config.strip_whitespace_keys = [:email]
# Tell if authentication through request.params is enabled. True by default. # Tell if authentication through request.params is enabled. True by default.
# It can be set to an array that will enable params authentication only for the # It can be set to an array that will enable params authentication only for the
@ -128,7 +128,7 @@ Devise.setup do |config|
config.reconfirmable = true config.reconfirmable = true
# Defines which key will be used when confirming an account # Defines which key will be used when confirming an account
# config.confirmation_keys = [ :email ] # config.confirmation_keys = [:email]
# ==> Configuration for :rememberable # ==> Configuration for :rememberable
# The time the user will be remembered without asking for credentials again. # The time the user will be remembered without asking for credentials again.
@ -168,7 +168,7 @@ Devise.setup do |config|
# config.lock_strategy = :failed_attempts # config.lock_strategy = :failed_attempts
# Defines which key will be used when locking and unlocking an account # Defines which key will be used when locking and unlocking an account
# config.unlock_keys = [ :email ] # config.unlock_keys = [:email]
# Defines which strategy will be used to unlock an account. # Defines which strategy will be used to unlock an account.
# :email = Sends an unlock link to the user email # :email = Sends an unlock link to the user email
@ -190,7 +190,7 @@ Devise.setup do |config|
# ==> Configuration for :recoverable # ==> Configuration for :recoverable
# #
# Defines which key will be used when recovering the password for an account # Defines which key will be used when recovering the password for an account
# config.reset_password_keys = [ :email ] # config.reset_password_keys = [:email]
# Time interval you can reset your password with a reset password key. # Time interval you can reset your password with a reset password key.
# Don't put a too small interval or your users won't have the time to # Don't put a too small interval or your users won't have the time to