Sha256: fc5ed46b8cf56a1acf0059d4d1bad36643a56c1e1675fda8ffa73ee7b2078d25
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
class Character::Page include Mongoid::Document include Mongoid::Timestamps include UpdatedAgo include Orderable include Hideable # attributes field :title field :description field :path field :template_name, default: 'redactor' field :template_content, type: Hash, default: {} # indexes index({ path: 1 }) # helpers def template_path "pages/#{ template_name }" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
character-1.0.5 | app/models/character/page.rb |