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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
Thanh Hung Pham
veNJOB
Commits
9efeecec
Commit
9efeecec
authored
Jul 20, 2017
by
Thanh Hung Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix update history
parent
5ca75397
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
app/controllers/jobs_controller.rb
+2
-1
No files found.
app/controllers/jobs_controller.rb
View file @
9efeecec
...
@@ -5,7 +5,8 @@ class JobsController < ApplicationController
...
@@ -5,7 +5,8 @@ class JobsController < ApplicationController
def
detail
def
detail
@job
=
Job
.
find
(
params
[
:id
])
@job
=
Job
.
find
(
params
[
:id
])
History
.
new
(
user:
current_user
,
job:
@job
).
save
if
History
.
where
(
user:
current_user
,
job:
@job
).
blank?
@history
=
History
.
find_or_create_by
(
user:
current_user
,
job:
@job
)
@history
.
touch
(
:updated_at
)
end
end
def
apply
def
apply
...
...
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