add delayed job pretty printing for increment and decrement post counts

This commit is contained in:
r888888888
2014-10-28 13:40:12 -07:00
parent 38d48081a0
commit 92237d4bf5

View File

@@ -37,6 +37,12 @@ module DelayedJobsHelper
when "Class#convert"
"<strong>convert ugoira</strong>"
when "Class#increment_post_counts"
"<strong>increment post counts</strong>"
when "Class#decrement_post_counts"
"<strong>decrement post counts</strong>"
else
h(job.name)
end
@@ -77,6 +83,12 @@ module DelayedJobsHelper
when "Class#convert"
h(job.payload_object.args[0])
when "Class#increment_post_counts"
h(job.payload_object.args.join(" "))
when "Class#decrement_post_counts"
h(job.payload_object.args.join(" "))
else
h(job.handler)
end