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
0
Merge Requests
0
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
Huỳnh Thiên Phước
venjob
Commits
f95ce8a2
Commit
f95ce8a2
authored
Sep 01, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert symbol to string level 2 of hash
parent
513018b3
Pipeline
#1060
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/controllers/applied_jobs_controller.rb
+6
-6
No files found.
app/controllers/applied_jobs_controller.rb
View file @
f95ce8a2
...
@@ -4,13 +4,13 @@ class AppliedJobsController < ApplicationController
...
@@ -4,13 +4,13 @@ class AppliedJobsController < ApplicationController
def
new
def
new
apply_info
=
session
[
:apply_job
]
||
{}
apply_info
=
session
[
:apply_job
]
||
{}
apply_info
[
:job_id
]
=
params
[
:job_id
]
apply_info
[
'job_id'
]
=
params
[
:job_id
]
apply_info
[
:name
]
||=
current_user
.
name
apply_info
[
'name'
]
||=
current_user
.
name
apply_info
[
:email
]
||=
current_user
.
email
apply_info
[
'email'
]
||=
current_user
.
email
session
[
:apply_job
]
=
{
job_id:
apply_info
[
:job_id
]}
session
[
:apply_job
]
=
{
job_id:
apply_info
[
'job_id'
]}
@job_applied
=
current_user
.
job_applieds
.
new
(
name:
apply_info
[
:name
],
@job_applied
=
current_user
.
job_applieds
.
new
(
name:
apply_info
[
'name'
],
email:
apply_info
[
:email
])
email:
apply_info
[
'email'
])
@job_applied
.
cv_user
.
retrieve_from_cache!
(
session
[
:cv
])
if
session
[
:cv
].
present?
@job_applied
.
cv_user
.
retrieve_from_cache!
(
session
[
:cv
])
if
session
[
:cv
].
present?
@job_applied
.
cv_user
=
current_user
.
cv_user
if
@job_applied
.
cv_user
.
blank?
@job_applied
.
cv_user
=
current_user
.
cv_user
if
@job_applied
.
cv_user
.
blank?
...
...
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