Sha256: 02cab71700ff3dab1d40b0b411008336d58b5917e1e541dacf51a9ae94aa8e62
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
module Gemgento ActiveAdmin.register ApiJob do menu priority: 100, parent: 'Gemgento', label: 'API Jobs' actions :all, :only => [:index, :show ] index do column :source_type column 'source_id' do |api_job| if api_job.source if api_job.source_type == 'Gemgento::Order' api_job.source.increment_id else api_job.source_id end end end column :state column :type column :response_status column :created_at column :updated_at actions :defaults => false do |job| link_to 'Show', admin_gemgento_api_job_path(job) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | lib/gemgento/admin/api_jobs.rb |