Class: Marty::BackgroundJob::ScheduleJobsLogs

Inherits:
Grid
  • Object
show all
Defined in:
app/components/marty/background_job/schedule_jobs_logs.rb

Constant Summary collapse

ACCESSIBLE_BY =
[:admin]

Constants included from Permissions

Permissions::NETZKE_ENDPOINTS

Instance Method Summary collapse

Methods inherited from Grid

#child_components, #class_can?, #configure_form_window, #get_json_sorter, #has_search_action?, #initialize, #linked_components

Methods included from Permissions

#can_call_endpoint?, #can_perform_action?, #can_perform_actions, #current_user_roles, extended, #has_any_perm?, #has_marty_permissions, #has_perm?

Constructor Details

This class inherits a constructor from Marty::Grid

Instance Method Details

#configure(c) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'app/components/marty/background_job/schedule_jobs_logs.rb', line 18

def configure(c)
  super

  c.title ||= I18n.t('schedule_jobs_dashboard_view_title', default: "Scheduled Job's Logs")
  c.model = 'Marty::BackgroundJob::Log'
  c.paging = :buffered
  c.editing = :in_form
  c.multi_select = true

  c.attributes = [
    :job_class,
    :arguments,
    :status,
    :error,
    :created_at
  ]

  c.store_config.merge!(sorters: [{ property: :id, direction: 'DESC' }])
end

#default_bbarObject



42
43
44
# File 'app/components/marty/background_job/schedule_jobs_logs.rb', line 42

def default_bbar
  [:delete, :destroy_all, :ignore]
end

#default_context_menuObject



38
39
40
# File 'app/components/marty/background_job/schedule_jobs_logs.rb', line 38

def default_context_menu
  []
end