Sha256: bbc6aedbd1d4e51f287386be82700f3c7032f66f96c491e9e5ab64a4c41e2835

Contents?: true

Size: 212 Bytes

Versions: 4

Compression:

Stored size: 212 Bytes

Contents

class Agent
  include Mongoid::Document
  field :title
  field :number
  embeds_many :names
  references_many :posts, :foreign_key => :poster_id
  accepts_nested_attributes_for :posts, :allow_destroy => true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-eager-loading-0.2.0 spec/models/agent.rb
mongoid-eager-loading-0.1.2 spec/models/agent.rb
mongoid-eager-loading-0.1.1 spec/models/agent.rb
mongoid-eager-loading-0.1.0 spec/models/agent.rb