lib/resque/plugins/restriction.rb in resque-restriction-0.5.0 vs lib/resque/plugins/restriction.rb in resque-restriction-0.5.1
- old
+ new
@@ -68,10 +68,10 @@
when :concurrent then "*"
when :per_minute, :per_hour, :per_day, :per_week then (Time.now.to_i / SECONDS[period]).to_s
when :per_month then Date.today.strftime("%Y-%m")
when :per_year then Date.today.year.to_s
else period.to_s =~ /^per_(\d+)$/ and (Time.now.to_i / $1.to_i).to_s end
- [self.restriction_identifier(*args), period_str].compact.join(":")
+ [RESTRICTION_QUEUE_PREFIX, self.restriction_identifier(*args), period_str].compact.join(":")
end
def restriction_identifier(*args)
self.to_s
end