Class: Marty::BackgroundJob::ScheduleJobsGrid
- Defined in:
- app/components/marty/background_job/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
17 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_grid.rb', line 17 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, :arguments, :cron, :state ] end |
#default_bbar ⇒ Object
42 43 44 |
# File 'app/components/marty/background_job/schedule_jobs_grid.rb', line 42 def super + [:do_job_run] end |
#default_context_menu ⇒ Object
38 39 40 |
# File 'app/components/marty/background_job/schedule_jobs_grid.rb', line 38 def [] end |