Class: WorkItems::Widgets::CurrentUserTodos
- Defined in:
- app/models/work_items/widgets/current_user_todos.rb
Instance Attribute Summary
Attributes inherited from Base
#widget_definition, #work_item
Class Method Summary collapse
- .process_quick_action_param(param_name, value) ⇒ Object
- .quick_action_commands ⇒ Object
- .quick_action_params ⇒ Object
Methods inherited from Base
api_symbol, callback_class, #initialize, sorting_keys, sync_data_callback_class, #sync_data_callback_class, type, #type
Constructor Details
This class inherits a constructor from WorkItems::Widgets::Base
Class Method Details
.process_quick_action_param(param_name, value) ⇒ Object
14 15 16 17 18 |
# File 'app/models/work_items/widgets/current_user_todos.rb', line 14 def self.process_quick_action_param(param_name, value) return super unless param_name == :todo_event { action: value == 'done' ? 'mark_as_done' : 'add' } end |
.quick_action_commands ⇒ Object
6 7 8 |
# File 'app/models/work_items/widgets/current_user_todos.rb', line 6 def self.quick_action_commands [:todo, :done] end |
.quick_action_params ⇒ Object
10 11 12 |
# File 'app/models/work_items/widgets/current_user_todos.rb', line 10 def self.quick_action_params [:todo_event] end |