Class: ChalkDust::Connection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ChalkDust::Connection
- Defined in:
- lib/chalk_dust.rb
Class Method Summary collapse
Class Method Details
.subscribers_of(publisher) ⇒ Object
9 10 11 12 |
# File 'lib/chalk_dust.rb', line 9 def self.subscribers_of(publisher) where(:publisher_id => publisher.id, :publisher_type => publisher.class.to_s).map(&:subscriber) end |