Class: Marty::ScheduleJobsGrid
- Defined in:
- app/components/marty/schedule_jobs_grid.rb
Constant Summary collapse
- ACCESSIBLE_BY =
[:admin]
Constants included from Permissions
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
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/components/marty/schedule_jobs_grid.rb', line 15 def configure(c) super c.title ||= I18n.t('schedule_jobs_dashboard_view_title', default: 'Schedule Jobs Dashboard') c.model = 'Marty::BackgroundJob::Schedule' c.paging = :buffered c.editing = :in_form c.multi_select = false c.attributes = [ :job_class, :cron, :state ] end |
#default_bbar ⇒ Object
35 36 37 |
# File 'app/components/marty/schedule_jobs_grid.rb', line 35 def super + [:do_job_run] end |
#default_context_menu ⇒ Object
31 32 33 |
# File 'app/components/marty/schedule_jobs_grid.rb', line 31 def [] end |