Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xuan Trung Le
venjob
Commits
aa51d253
Commit
aa51d253
authored
Nov 17, 2017
by
Xuan Trung Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
1692d521
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
Gemfile
+1
-0
Gemfile.lock
+3
-0
app/models/job.rb
+1
-1
config/settings.yml
+4
-1
No files found.
Gemfile
View file @
aa51d253
...
...
@@ -24,6 +24,7 @@ gem "settingslogic"
gem
'
sidekiq
'
gem
'
rsolr
'
gem
'
rubyzip
'
gem
'
rsolr-ext
'
group
:development
,
:test
do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
...
...
Gemfile.lock
View file @
aa51d253
...
...
@@ -137,6 +137,8 @@ GEM
rsolr (2.0.2)
builder (>= 2.1.2)
faraday
rsolr-ext (1.0.3)
rsolr (>= 1.0.2)
rubyzip (1.2.1)
sass (3.5.3)
sass-listen (~> 4.0.0)
...
...
@@ -195,6 +197,7 @@ DEPENDENCIES
puma (~> 3.7)
rails (~> 5.1.4)
rsolr
rsolr-ext
rubyzip
sass-rails (~> 5.0)
settingslogic
...
...
app/models/job.rb
View file @
aa51d253
...
...
@@ -69,6 +69,6 @@ class Job < ApplicationRecord
# Rsolr
def
self
.
get_data_for_solr
Job
.
select
(
:id
,
:name
,
:salary
,
:description
,
:company_id
,
)
Job
.
select
(
:id
,
:name
,
:salary
,
:description
,
:company_id
)
end
end
config/settings.yml
View file @
aa51d253
...
...
@@ -4,7 +4,10 @@ defaults: &defaults
industry_per_page
:
9
city_per_page
:
9
job_per_history_page
:
20
rsolr
:
url
:
'
http://localhost:8983/solr/my_solr_collection'
read_timeout
:
120
open_timeout
:
120
development
:
<<
:
*defaults
...
...
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