app/models/locomotive/account.rb in locomotive_cms-2.0.0.rc8 vs app/models/locomotive/account.rb in locomotive_cms-2.0.0.rc9
- old
+ new
@@ -3,9 +3,23 @@
include Locomotive::Mongoid::Document
devise *Locomotive.config.devise_modules
+ ## devise fields (need to be declared since 2.x) ##
+ field :remember_created_at, :type => Time
+ field :email, :type => String, :null => false
+ field :encrypted_password, :type => String, :null => false
+ field :authentication_token, :type => String
+ field :reset_password_token, :type => String
+ field :reset_password_sent_at, :type => Time
+ field :password_salt, :type => String
+ field :sign_in_count, :type => Integer
+ field :current_sign_in_at, :type => Time
+ field :last_sign_in_at, :type => Time
+ field :current_sign_in_ip, :type => String
+ field :last_sign_in_ip, :type => String
+
## attributes ##
field :name
field :locale, :default => Locomotive.config.default_locale.to_s or 'en'
## validations ##