Revise docs from #5405
Update a couple other modules that still referred to `devise_for` to point to `devise`, and make all of them more consistent. We can only mention `devise`, that should be clear enough about it being options for the model method.
This commit is contained in:
parent
7d103bc627
commit
366a428b2c
|
@ -10,7 +10,7 @@ module Devise
|
|||
#
|
||||
# == Options
|
||||
#
|
||||
# Authenticatable adds the following options to devise method in your model:
|
||||
# Authenticatable adds the following options to +devise+:
|
||||
#
|
||||
# * +authentication_keys+: parameters used for authentication. By default [:email].
|
||||
#
|
||||
|
|
|
@ -13,7 +13,7 @@ module Devise
|
|||
#
|
||||
# == Options
|
||||
#
|
||||
# DatabaseAuthenticatable adds the following options to devise method in your model:
|
||||
# DatabaseAuthenticatable adds the following options to +devise+:
|
||||
#
|
||||
# * +pepper+: a random string used to provide a more secure hash. Use
|
||||
# `rails secret` to generate new keys.
|
||||
|
@ -42,7 +42,7 @@ module Devise
|
|||
def initialize(*args, &block)
|
||||
@skip_email_changed_notification = false
|
||||
@skip_password_change_notification = false
|
||||
super
|
||||
super
|
||||
end
|
||||
|
||||
# Skips sending the email changed notification after_update
|
||||
|
|
|
@ -8,7 +8,7 @@ module Devise
|
|||
#
|
||||
# == Options
|
||||
#
|
||||
# Oauthable adds the following options to devise method in your model:
|
||||
# Oauthable adds the following options to +devise+:
|
||||
#
|
||||
# * +omniauth_providers+: Which providers are available to this model. It expects an array:
|
||||
#
|
||||
|
|
|
@ -7,7 +7,7 @@ module Devise
|
|||
#
|
||||
# ==Options
|
||||
#
|
||||
# Recoverable adds the following options to devise_for:
|
||||
# Recoverable adds the following options to +devise+:
|
||||
#
|
||||
# * +reset_password_keys+: the keys you want to use when recovering the password for an account
|
||||
# * +reset_password_within+: the time period within which the password must be reset or the token expires.
|
||||
|
|
|
@ -15,7 +15,7 @@ module Devise
|
|||
#
|
||||
# == Options
|
||||
#
|
||||
# Rememberable adds the following options in devise_for:
|
||||
# Rememberable adds the following options to +devise+:
|
||||
#
|
||||
# * +remember_for+: the time you want the user will be remembered without
|
||||
# asking for credentials. After this time the user will be blocked and
|
||||
|
|
|
@ -11,7 +11,7 @@ module Devise
|
|||
#
|
||||
# == Options
|
||||
#
|
||||
# Timeoutable adds the following options to devise method in your model:
|
||||
# Timeoutable adds the following options to +devise+:
|
||||
#
|
||||
# * +timeout_in+: the interval to timeout the user session without activity.
|
||||
#
|
||||
|
|
|
@ -9,7 +9,7 @@ module Devise
|
|||
#
|
||||
# == Options
|
||||
#
|
||||
# Validatable adds the following options to devise method in your model:
|
||||
# Validatable adds the following options to +devise+:
|
||||
#
|
||||
# * +email_regexp+: the regular expression used to validate e-mails;
|
||||
# * +password_length+: a range expressing password length. Defaults to 6..128.
|
||||
|
|
Loading…
Reference in New Issue