15179878d5
This reverts commit 8717c7dad9
.
12 lines
283 B
Ruby
12 lines
283 B
Ruby
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
|