Sha256: 991dffaf808e0f87f468fb9f3e299b0e042ac7679b29598148a95c0d80b3647d
Contents?: true
Size: 427 Bytes
Versions: 7
Compression:
Stored size: 427 Bytes
Contents
# encoding: UTF-8 class Character::PostAuthor include Mongoid::Document include Mongoid::Timestamps include Mongoid::Slug include Mongoid::Attributes::Dynamic # required to remove users using _delete field # attributes field :name field :title field :email field :url # relations has_many :posts, class_name: 'Character::Post' # slugs slug :name, history: true # indexes index({ slug: 1 }) end
Version data entries
7 entries across 7 versions & 1 rubygems