lib/propono/services/publisher.rb in propono-1.3.0 vs lib/propono/services/publisher.rb in propono-1.4.0
- old
+ new
@@ -15,10 +15,10 @@
def initialize(topic_id, message, options = {})
raise PublisherError.new("Topic is nil") if topic_id.nil?
raise PublisherError.new("Message is nil") if message.nil?
- options = options.symbolize_keys
+ options = Propono::Utils.symbolize_keys options
@topic_id = topic_id
@message = message
@protocol = options.fetch(:protocol, :sns).to_sym
@id = SecureRandom.hex(3)