mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Do not freeze arrays, allowing other plugins to extend Devise
This commit is contained in:
parent
45a5d2b416
commit
d164768a4b
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ module Devise
|
|||
autoload :FailureApp, 'devise/failure_app'
|
||||
|
||||
ALL = [:authenticatable, :confirmable, :recoverable, :rememberable,
|
||||
:timeoutable, :trackable, :validatable].freeze
|
||||
:timeoutable, :trackable, :validatable]
|
||||
|
||||
# Maps controller names to devise modules
|
||||
CONTROLLERS = {
|
||||
|
@ -13,9 +13,9 @@ module Devise
|
|||
:confirmations => :confirmable
|
||||
}.freeze
|
||||
|
||||
STRATEGIES = [:authenticatable].freeze
|
||||
SERIALIZERS = [:authenticatable, :rememberable].freeze
|
||||
TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'].freeze
|
||||
STRATEGIES = [:authenticatable]
|
||||
SERIALIZERS = [:authenticatable, :rememberable]
|
||||
TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE']
|
||||
|
||||
# Maps the messages types that are used in flash message. This array is not
|
||||
# frozen, so you can add messages from your own strategies.
|
||||
|
|
Loading…
Reference in a new issue