diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-21 22:12:49 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-21 22:12:49 -0700 |
| commit | 7cd78597d794efcf79090377bbc1909a1d6d3ad9 (patch) | |
| tree | f4f55eb33be3912030c505198e67b1cba9ba2473 /app/services | |
| parent | feaf5cfae0f948ceebae4d1ff2c80d84cd76cae0 (diff) | |
| parent | 05b427bd4d9f9c4ea60f9485f06d68de0b689d28 (diff) | |
merge with master
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 |
