Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-06-24 20:48:50 +0300
committerStan Hu <stanhu@gmail.com>2019-06-24 20:49:13 +0300
commitf2d932268d1b30929e45d7503ef90b325a85e314 (patch)
treee506d96f45f96106cf492b5acba40960d321b662 /app/controllers/dashboard
parent211a00473b78ada629d1c401ec443b766392185e (diff)
Rename Todos.with_api_entity_associations to with_entity_associations
Since this scope is used in both the controller and the API, we rename it to make it clear that it's used for both.
Diffstat (limited to 'app/controllers/dashboard')
-rw-r--r--app/controllers/dashboard/todos_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb
index 6417cb8e933..27980466a42 100644
--- a/app/controllers/dashboard/todos_controller.rb
+++ b/app/controllers/dashboard/todos_controller.rb
@@ -10,7 +10,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
def index
@sort = params[:sort]
@todos = @todos.page(params[:page])
- @todos = @todos.with_api_entity_associations
+ @todos = @todos.with_entity_associations
return if redirect_out_of_range(@todos)
end