2012-04-26 13:30:13 +00:00
|
|
|
class OtherAccount
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
2012-04-30 06:29:42 +00:00
|
|
|
include Mongoid::Encryptor
|
2012-04-26 13:30:13 +00:00
|
|
|
|
2012-04-30 06:29:42 +00:00
|
|
|
field :user_id
|
2012-04-26 13:30:13 +00:00
|
|
|
field :type
|
|
|
|
field :email
|
|
|
|
field :encrypted_password
|
|
|
|
|
2012-04-30 06:29:42 +00:00
|
|
|
encrypts :encrypted_password, :mode => :symmetric, :password => 'rulingcom'
|
2012-04-26 13:30:13 +00:00
|
|
|
|
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
end
|