Module: Admin::BackgroundJobsHelper
- Defined in:
- app/helpers/admin/background_jobs_helper.rb
Instance Method Summary collapse
-
#background_job_state_path(state) ⇒ Object
The listing path for a job state.
Instance Method Details
#background_job_state_path(state) ⇒ Object
The listing path for a job state. Pending is the index; the rest are collection routes named after the state.
7 8 9 10 11 12 13 |
# File 'app/helpers/admin/background_jobs_helper.rb', line 7 def background_job_state_path(state) if state == :pending admin_background_jobs_path else public_send(:"#{state}_admin_background_jobs_path") end end |