Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 30a60ef93d
Fetching contributors…

Cannot retrieve contributors at this time

file 11 lines (9 sloc) 0.214 kb
1 2 3 4 5 6 7 8 9 10 11
class Chat < ActiveRecord::Base
  validates_presence_of :name

  def self.since(last_id)
    order('id ASC').where('id > ?', last_id)
  end

  def self.recent(limit = 10)
    order('id ASC').limit(limit)
  end
end
Something went wrong with that request. Please try again.