1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/active_job/queue_name.rb
2014-05-19 11:04:23 +02:00

10 lines
No EOL
252 B
Ruby

module ActiveJob
module QueueName
mattr_accessor(:queue_base_name) { "active_jobs" }
mattr_accessor(:queue_name) { queue_base_name }
def queue_as(part_name)
self.queue_name = "#{queue_base_name}_#{part_name}"
end
end
end