1
0
Fork 0
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:
José Valim 2010-08-26 08:30:12 -03:00
parent c6002bb9bd
commit ee49077072

View file

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