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

Version Path
radiant-reader-extension-2.0.0.rc4 app/models/message_reader.rb
radiant-reader-extension-1.3.13 app/models/message_reader.rb
radiant-reader-extension-1.3.12 app/models/message_reader.rb
radiant-reader-extension-1.3.11 app/models/message_reader.rb
radiant-reader-extension-1.3.10 app/models/message_reader.rb
radiant-reader-extension-1.3.9 app/models/message_reader.rb
radiant-reader-extension-1.3.8 app/models/message_reader.rb
radiant-reader-extension-1.3.7 app/models/message_reader.rb
radiant-reader-extension-1.3.6 app/models/message_reader.rb
radiant-reader-extension-1.3.4 app/models/message_reader.rb
radiant-reader-extension-1.3.3 app/models/message_reader.rb
radiant-reader-extension-1.3.1 app/models/message_reader.rb
radiant-reader-extension-1.3.0 app/models/message_reader.rb
radiant-reader-extension-1.2.4 app/models/message_reader.rb
radiant-reader-extension-1.2.3 app/models/message_reader.rb
radiant-reader-extension-1.2.2 app/models/message_reader.rb
radiant-reader-extension-1.2.1 app/models/message_reader.rb
radiant-reader-extension-1.2.0 app/models/message_reader.rb
radiant-reader-extension-1.1.1 app/models/message_reader.rb
radiant-reader-extension-1.1.0 app/models/message_reader.rb