Permalink
Browse files

no need for fields in User

  • Loading branch information...
1 parent 1958a09 commit 72dd95c1008d9e77df57d2e4bc9887157ef1101b @NoamB committed May 10, 2011
Showing with 1 addition and 17 deletions.
  1. +1 −17 app/models/user.rb
View
@@ -1,22 +1,6 @@
class User
include Mongoid::Document
- field :username, type: String
- field :email, type: String
- field :salt, type: String
- field :crypted_password, type: String
- field :reset_password_token, type: String
- field :reset_password_token_expires_at, type: DateTime
- field :reset_password_email_sent_at, type: DateTime
- field :remember_me_token, type: String
- field :remember_me_token_expires_at, type: DateTime
- field :activation_code, type: String
- field :activation_state, type: String
- field :activation_code_expires_at, type: DateTime
- field :lock_expires_at, type: DateTime
- field :last_login_at, type: DateTime
- field :failed_logins_count, type: Integer
- field :last_activity_at, type: DateTime
- field :last_logout_at, type: DateTime
+
attr_accessible :email, :password, :password_confirmation
has_many :providers, :class_name => "UserProvider", :dependent => :destroy

0 comments on commit 72dd95c

Please sign in to comment.