diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-09 20:25:22 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-09 20:25:22 -0700 |
| commit | 34f53efff788b7558f63d973aad1f3475c27c125 (patch) | |
| tree | f867a5243b5b1ef15ed16952abc3a43f91226ded /app/services | |
| parent | 64dd29d70ddda6f4927e9352e3e90c4f87b5041a (diff) | |
extract message objects to publish.
Diffstat (limited to 'app/services')
| -rw-r--r-- | app/services/publisher.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/publisher.rb b/app/services/publisher.rb index 704f1e3..1c384dd 100644 --- a/app/services/publisher.rb +++ b/app/services/publisher.rb @@ -1,7 +1,7 @@ class Publisher - def self.publish(routing_key, message = {}) + def self.publish(message) exchange = channel.topic("malwer") - exchange.publish(message.to_json, routing_key: routing_key) + exchange.publish(message.to_json, routing_key: message.routing_key) end def self.channel |
