add delayed job pretty printing for increment and decrement post counts
This commit is contained in:
@@ -37,6 +37,12 @@ module DelayedJobsHelper
|
|||||||
when "Class#convert"
|
when "Class#convert"
|
||||||
"<strong>convert ugoira</strong>"
|
"<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
|
else
|
||||||
h(job.name)
|
h(job.name)
|
||||||
end
|
end
|
||||||
@@ -77,6 +83,12 @@ module DelayedJobsHelper
|
|||||||
when "Class#convert"
|
when "Class#convert"
|
||||||
h(job.payload_object.args[0])
|
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
|
else
|
||||||
h(job.handler)
|
h(job.handler)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user