Sha256: a69ddd89a00784f9a2902a25c50130b133ae443a02673b8d00c020f279c318a3
Contents?: true
Size: 277 Bytes
Versions: 23
Compression:
Stored size: 277 Bytes
Contents
class MessageReader < ActiveRecord::Base belongs_to :message belongs_to :reader named_scope :undelivered, { :conditions => "sent_at IS NULL OR sent_at > NOW()" } named_scope :delivered, { :conditions => "sent_at IS NOT NULL and sent_at <= NOW()" } end
Version data entries
23 entries across 23 versions & 1 rubygems