Sha256: c656eeaf062a257409d6b4c7bb04e16624f3be71ffad61fdb9fcc4a0911bdd8f

Contents?: true

Size: 177 Bytes

Versions: 1

Compression:

Stored size: 177 Bytes

Contents

class MongoidOrm::HasOneReference
  include Mongoid::Document

  field :name

  belongs_to :primal, :class_name => 'MongoidOrm::Primal'

  validates :name, :presence => true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.1.1 spec/dummy/app/models/mongoid_orm/has_one_reference.rb