1
0
Fork 0
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:
José Valim 2009-12-08 18:29:00 -02:00
parent 45a5d2b416
commit d164768a4b

View file

@ -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.