mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
:default options is used, closes #452
This commit is contained in:
parent
c6002bb9bd
commit
ee49077072
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Devise
|
|||
# encrypter password field in 128 characters.
|
||||
def database_authenticatable(options={})
|
||||
null = options[:null] || false
|
||||
default = options[:default] || ""
|
||||
default = options.key?(:default) ? options[:default] : ("" if null == false)
|
||||
|
||||
apply_devise_schema :email, String, :null => null, :default => default
|
||||
apply_devise_schema :encrypted_password, String, :null => null, :default => default, :limit => 128
|
||||
|
|
Loading…
Reference in a new issue