Sha256: 37594669121a3468c3b817c3d90762f151934feae60f18dc55b3630eb02e08f6
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
class User include Ripple::Document many :addresses one :profile, :using => :key one :user_profile property :email, String, :presence => true many :friends, :class_name => "User" one :emergency_contact, :class_name => "User" one :credit_card, :using => :key end class UserProfile include Ripple::EmbeddedDocument property :name, String, :presence => true embedded_in :user end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ripple-1.0.0.beta2 | spec/support/models/user.rb |
ripple-1.0.0.beta | spec/support/models/user.rb |