with connection and some save settings…

This commit is contained in:
Harry Bomrah committed 2012-04-26 21:30:13 +08:00
1 parent c2ac682787
commit c158375d02
13 files changed
+90 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
class OtherAccount
include Mongoid::Document
include Mongoid::Timestamps
field :type
field :email
field :encrypted_password
attr_encrypted :encrypted_password, :key => 'rulingorbit.com', :encode => true
belongs_to :user
end
+1
View File
@@ -17,6 +17,7 @@ class User
has_many :managing_apps,:class_name => "AppManager"
has_one :desktop, :autosave => true, :dependent => :destroy
has_many :otheraccount, :autosave => true, :dependent => :destroy
belongs_to :role
has_and_belongs_to_many :sub_roles
accepts_nested_attributes_for :attribute_values, :allow_destroy => true