lib/propono/components/queue_subscription.rb in propono-0.5.6 vs lib/propono/components/queue_subscription.rb in propono-0.6.0
- old
+ new
@@ -22,17 +22,13 @@
sns.subscribe(@topic.arn, @queue.arn, 'sqs')
sqs.set_queue_attributes(@queue.url, "Policy", generate_policy)
end
def queue_name
- @queue_name ||= "#{config.application_name.gsub(" ", "_")}-#{@topic_id}"
+ @queue_name ||= "#{Propono.config.application_name.gsub(" ", "_")}-#{@topic_id}"
end
private
-
- def config
- Configuration.instance
- end
def generate_policy
<<-EOS
{
"Version": "2008-10-17",