Sha256: c69dda71254fb6be05a8e68751baeca713900e8aaa4386801e27cf0a530a4da1
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
class LastSeenActivity < ActiveRecord::Base attr_accessible :description, :link_to_object_id, :link_to_object_type, :user_id if defined? attr_accessible belongs_to :user belongs_to :link_to_object, polymorphic: true def self.current where('updated_at > ?', 5.minutes.ago).order('created_at') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | app/models/last_seen_activity.rb |
your_platform-1.0.0 | app/models/last_seen_activity.rb |