blob: c0acdb3498dd509f2c199601b7ef955c7891ffdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module TodosActions
extend ActiveSupport::Concern
def create
todo = TodoService.new.mark_todo(issuable, current_user)
render json: {
count: TodosFinder.new(current_user, state: :pending).execute.count,
delete_path: dashboard_todo_path(todo)
}
end
end
|