Add /delayed_jobs.json.
Leave out `handler` because it's sensitive.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class DelayedJobsController < ApplicationController
|
||||
respond_to :html, :xml, :json
|
||||
def index
|
||||
@delayed_jobs = Delayed::Job.order("created_at desc").paginate(params[:page], :limit => params[:limit])
|
||||
respond_with(@delayed_jobs)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,6 +26,12 @@ module Danbooru
|
||||
end
|
||||
end
|
||||
|
||||
class Delayed::Job
|
||||
def hidden_attributes
|
||||
[:handler]
|
||||
end
|
||||
end
|
||||
|
||||
class ActiveRecord::Base
|
||||
include Danbooru::Extensions::ActiveRecordApi
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user