1
2
3
4
5
6
7
8
class Activity < ActiveRecord::Base
  belongs_to :user
  serialize :context
  
  def self.find_recent(limit=5)
    find(:all, :order => 'created_at DESC', :limit => limit)
  end
end