Sha256: e868a294cb88edc82ca27de25f39b6af703f54b6de9443a63b5fcaa8d0e4a845

Contents?: true

Size: 227 Bytes

Versions: 4

Compression:

Stored size: 227 Bytes

Contents

class Team
  include Ripple::Document
  many :players
  validates_associated :players
end

class Player
  include Ripple::Document
  property :name, String, :presence => true
  property :position, String, :presence => true
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
wyngle-ripple-0.1.0 spec/support/models/team.rb
ripple-1.0.0.beta2 spec/support/models/team.rb
seomoz-ripple-1.0.0.pre spec/support/models/team.rb
ripple-1.0.0.beta spec/support/models/team.rb