更新gems源
This commit is contained in:
parent
c0271707a1
commit
7d17b654f6
3
Gemfile
3
Gemfile
|
@ -1,4 +1,5 @@
|
||||||
source 'https://gems.ruby-china.com'
|
#source 'https://gems.ruby-china.com'
|
||||||
|
source 'https://mirrors.cloud.tencent.com/rubygems/'
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||||
|
|
||||||
gem 'rails', '~> 5.2.0'
|
gem 'rails', '~> 5.2.0'
|
||||||
|
|
|
@ -48,7 +48,8 @@ class Projects::ListQuery < ApplicationQuery
|
||||||
@ids = Projects::ElasticsearchService.call(params[:search])
|
@ids = Projects::ElasticsearchService.call(params[:search])
|
||||||
items = items.where(platform: 'forge')
|
items = items.where(platform: 'forge')
|
||||||
if @ids.present?
|
if @ids.present?
|
||||||
items = items.where(id: @ids).by_name_or_identifier(params[:search])
|
# items = items.where(id: @ids).by_name_or_identifier(params[:search])
|
||||||
|
items = items.where(id: @ids)
|
||||||
else
|
else
|
||||||
items = items.by_name_or_identifier(params[:search])
|
items = items.by_name_or_identifier(params[:search])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue