Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
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
Ngô Trung Hưng
venjob_nth
Commits
4036163b
Commit
4036163b
authored
Aug 05, 2020
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
c5eb1f47
Pipeline
#811
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
app/controllers/job_controller.rb
+3
-1
No files found.
app/controllers/job_controller.rb
View file @
4036163b
...
@@ -5,7 +5,7 @@ class JobController < ApplicationController
...
@@ -5,7 +5,7 @@ class JobController < ApplicationController
before_action
:load_data_dropdown
,
only: :index
before_action
:load_data_dropdown
,
only: :index
def
index
def
index
model
=
Object
.
const_get
(
params
[
:model
].
capitalize
)
model
=
params
[
:model
].
classify
.
constantize
obj
=
model
.
find
(
params
[
:id
])
obj
=
model
.
find
(
params
[
:id
])
result
(
obj
)
result
(
obj
)
end
end
...
@@ -23,3 +23,4 @@ class JobController < ApplicationController
...
@@ -23,3 +23,4 @@ class JobController < ApplicationController
render
'result_data'
render
'result_data'
end
end
end
end
Object
.
const_get
(
'cities'
.
classify
)
\ 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