Class: WorkItems::Callbacks::CurrentUserTodos
- Inherits:
-
Base
- Object
- Issuable::Callbacks::Base
- Base
- WorkItems::Callbacks::CurrentUserTodos
- Defined in:
- app/services/work_items/callbacks/current_user_todos.rb
Constant Summary
Constants inherited from Issuable::Callbacks::Base
Issuable::Callbacks::Base::Error
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Issuable::Callbacks::Base
#after_create, #after_initialize, #after_save, #after_save_commit, #after_update, #after_update_commit, #before_create, #initialize
Methods included from Gitlab::Allowable
Constructor Details
This class inherits a constructor from Issuable::Callbacks::Base
Instance Method Details
#before_update ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/services/work_items/callbacks/current_user_todos.rb', line 6 def before_update return unless params.present? && params.key?(:action) case params[:action] when "add" add_todo when "mark_as_done" mark_as_done(params[:todo_id]) end end |