Method: GovernorBackground::Controllers::Methods#show_recent_statuses
- Defined in:
- lib/governor_background/controllers/methods.rb
#show_recent_statuses ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/governor_background/controllers/methods.rb', line 8 def show_recent_statuses finished_jobs = GovernorBackground::JobManager.finished_jobs unless finished_jobs.blank? flash[:governor_background] = finished_jobs.map do |job| [job.status, t("#{job.name}_#{job.status}", :message => job., :default => [job.status, job.status.to_sym], :scope => :governor_background)] end end end |