Sha256: 4f702f47dfaf5856202cecd8b21d6edfdd9b3ff4a9f44df0c41b07bba89d0da7

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

class Book
  include Mongoid::Document
  include Mongoid::SortedRelations

  field :title

  attr_accessible :title

  has_many :chapters
  has_and_belongs_to_many :authors

  init_sorted_relations
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-sorted-relations-0.0.3 spec/support/models/book.rb
mongoid-sorted-relations-0.0.2 spec/support/models/book.rb
mongoid-sorted-relations-0.0.1 spec/support/models/book.rb