Sha256: 2059c253a8fb9c312415b1c1f16d49c3c45513e378bf800778c9c8a661aca237

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

module Annex
  class Block
    include Mongoid::Document
    include Mongoid::Timestamps
    include Mongoid::Attributes::Dynamic

    field :route, type: String
    field :content, type: Hash

    validates_presence_of :route
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
annex-cms-0.1.8 app/models/annex/block.rb
annex-cms-0.1.7 app/models/annex/block.rb
annex-cms-0.1.5 app/models/annex/block.rb
annex-cms-0.1.2 app/models/annex/block.rb
annex-cms-0.1.0 app/models/annex/block.rb