Sha256: 89217640e236710d493d7246a48d6e86256054e93acff287227e136c98143680
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
class ReadMark include Mongoid::Document belongs_to :readable, polymorphic: true, index: true belongs_to :reader, polymorphic: true, index: true validates_presence_of :reader_id, :reader_type, :readable_id, :readable_type validates :reader_id, uniqueness: { scope: [:reader_type, :readable_id, :readable_type] } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unread-mongoid-0.1.0 | lib/unread_mongoid/read_mark.rb |