This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/models/desktop/other_account.rb

15 lines
292 B
Ruby
Raw 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