73322a0e55
Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
14 lines
314 B
Ruby
14 lines
314 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|