summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Rydkin <maks.rydkin@gmail.com>2017-09-05 21:59:40 +0300
committerMaxim Rydkin <maks.rydkin@gmail.com>2017-09-10 18:31:06 +0300
commit20ff87a261ac0ea06268d2cb7223f104baf2ed35 (patch)
tree4bfaef6b1c304a0b0e3edb7b2b829e78d4da2557
parent0c84713e858ea373440652b3bed8f9be8a006c48 (diff)
downloadgitlab-ce-20ff87a261ac0ea06268d2cb7223f104baf2ed35.tar.gz
rename yet_another_users_finder into autocomplete_users_finder
-rw-r--r--app/controllers/autocomplete_controller.rb2
-rw-r--r--app/finders/autocomplete_users_finder.rb (renamed from app/finders/yet_another_users_finder.rb)2
-rw-r--r--spec/finders/autocomplete_users_finder_spec.rb (renamed from spec/finders/yet_another_users_finder_spec.rb)2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb
index 8e945f90f76..d907777e936 100644
--- a/app/controllers/autocomplete_controller.rb
+++ b/app/controllers/autocomplete_controller.rb
@@ -6,7 +6,7 @@ class AutocompleteController < ApplicationController
before_action :find_users, only: [:users]
def users
- @users = YetAnotherUsersFinder.new(params: params, current_user: current_user, users: @users).execute
+ @users = AutocompleteUsersFinder.new(params: params, current_user: current_user, users: @users).execute
render json: @users, only: [:name, :username, :id], methods: [:avatar_url]
end
diff --git a/app/finders/yet_another_users_finder.rb b/app/finders/autocomplete_users_finder.rb
index 5f7f3913160..f88e94b70b7 100644
--- a/app/finders/yet_another_users_finder.rb
+++ b/app/finders/autocomplete_users_finder.rb
@@ -1,4 +1,4 @@
-class YetAnotherUsersFinder
+class AutocompleteUsersFinder
attr_reader :current_user, :users, :search, :skip_users, :page,
:per_page, :author_id, :params
diff --git a/spec/finders/yet_another_users_finder_spec.rb b/spec/finders/autocomplete_users_finder_spec.rb
index 0b5ccc7eb23..95d1226814f 100644
--- a/spec/finders/yet_another_users_finder_spec.rb
+++ b/spec/finders/autocomplete_users_finder_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe YetAnotherUsersFinder do
+describe AutocompleteUsersFinder do
describe '#execute' do
let!(:user1) { create(:user, username: 'johndoe') }
let!(:user2) { create(:user, :blocked, username: 'notsorandom') }