Sha256: 401604a0b035a965fc74452d74a33832e703f9c609ed608d61b61cf1b713b201
Contents?: true
Size: 717 Bytes
Versions: 7
Compression:
Stored size: 717 Bytes
Contents
ActiveAdmin.register JobNotifier::Job, as: "Job" do actions :index, :show filter :status filter :created_at controller do def scoped_collection user = send(ActiveAdmin.application.current_user_method) JobNotifier::Job.where(identifier: user.job_identifier) end end index do id_column tag_column :status column :description column :created_at actions end show do attributes_table do row :id tag_row :status row :description row :created_at end if !resource.result.blank? panel JobNotifier::Job.human_attribute_name(:result) do ActiveadminJobs::JobResultRenderer.new(self).render end end end end
Version data entries
7 entries across 7 versions & 1 rubygems