Sha256: 0f2fefdb64456e1539414a95a9a6178674577689c68d8f26ebf7d4d7fb56b8b4
Contents?: true
Size: 247 Bytes
Versions: 2
Compression:
Stored size: 247 Bytes
Contents
# frozen_string_literal: true class Section include Mongoid::Document include Mongoid::Timestamps embedded_in :page, inverse_of: :sections field :header, type: String field :body, type: String validates :header, presence: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid-embedded-errors-4.0.0 | spec/support/models/section.rb |
mongoid-embedded-errors-3.0.1 | spec/support/models/section.rb |