Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_thanhnd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
thanhnd
venjob_thanhnd
Commits
2155b5f7
Commit
2155b5f7
authored
May 08, 2020
by
thanhnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix syntax review Toi-san 20200508
parent
b4e5943b
Pipeline
#606
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
db/migrate/20200309014715_add_devise_to_users.rb
+0
-2
lib/solr.rb
+4
-4
No files found.
db/migrate/20200309014715_add_devise_to_users.rb
View file @
2155b5f7
# frozen_string_literal: true
class
AddDeviseToUsers
<
ActiveRecord
::
Migration
[
6.0
]
class
AddDeviseToUsers
<
ActiveRecord
::
Migration
[
6.0
]
def
change
def
change
change_table
:users
do
|
t
|
change_table
:users
do
|
t
|
...
...
lib/solr.rb
View file @
2155b5f7
require
'rsolr'
require
'rsolr'
class
Solr
class
Solr
attr_accessor
:response
,
:solr
attr_accessor
:response
,
:solr
def
initialize
def
initialize
# Direct connection
# Direct connection
...
@@ -13,4 +13,4 @@ class Solr
...
@@ -13,4 +13,4 @@ class Solr
response
=
solr
.
paginate
page
,
10
,
'select'
,
:params
=>
{
:q
=>
"job_name:
#{
str
}
"
}
response
=
solr
.
paginate
page
,
10
,
'select'
,
:params
=>
{
:q
=>
"job_name:
#{
str
}
"
}
response
[
'response'
][
'docs'
]
response
[
'response'
][
'docs'
]
end
end
end
end
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment