Class: PubSub::ActiveRecord::Subscriber
- Inherits:
-
Subscriber
- Object
- Subscriber
- PubSub::ActiveRecord::Subscriber
- Defined in:
- lib/pub_sub/active_record_extensions.rb
Instance Attribute Summary
Attributes inherited from Subscriber
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Subscriber
#initialize, #on_publish, publish, subscription, topic
Constructor Details
This class inherits a constructor from PubSub::Subscriber
Class Method Details
.subscribe_to(class_instance, callback) ⇒ Object
29 30 31 |
# File 'lib/pub_sub/active_record_extensions.rb', line 29 def self.subscribe_to(class_instance, callback) super("active_record::#{class_instance.to_s.underscore}::#{callback}") end |
Instance Method Details
#record ⇒ Object
33 34 35 |
# File 'lib/pub_sub/active_record_extensions.rb', line 33 def record [:record] end |