Class: Atr::Publisher
- Inherits:
-
Object
- Object
- Atr::Publisher
- Includes:
- Celluloid
- Defined in:
- lib/atr/publisher.rb
Instance Method Summary collapse
Instance Method Details
#publish_event(event) ⇒ Object
5 6 7 8 9 |
# File 'lib/atr/publisher.rb', line 5 def publish_event(event) ::ActiveRecord::Base.connection_pool.with_connection do ::Atr::Redis.connection.publish(event["routing_key"], Marshal.dump(event)) end end |