orbit-basic/app/models/desktop/other_account.rb

15 lines
292 B
Ruby
Raw Permalink Normal View History

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