Class: ChalkDust::ActivityItem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ChalkDust::ActivityItem
- Defined in:
- lib/chalk_dust.rb
Class Method Summary collapse
Class Method Details
.for_owner(owner) ⇒ Object
22 23 24 25 |
# File 'lib/chalk_dust.rb', line 22 def self.for_owner(owner) where(:owner_id => owner.id, :owner_type => owner.class.to_s) end |
.since(time) ⇒ Object
27 28 29 |
# File 'lib/chalk_dust.rb', line 27 def self.since(time) where("created_at >= ?", time) end |