Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
6db49cfe
Commit
6db49cfe
authored
Dec 17, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Projects::ImportsController EE-compatible
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
4a10c813
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/controllers/projects/imports_controller.rb
app/controllers/projects/imports_controller.rb
+5
-5
No files found.
app/controllers/projects/imports_controller.rb
View file @
6db49cfe
...
@@ -13,7 +13,7 @@ class Projects::ImportsController < Projects::ApplicationController
...
@@ -13,7 +13,7 @@ class Projects::ImportsController < Projects::ApplicationController
end
end
def
create
def
create
if
@project
.
update
(
safe_
import_params
)
if
@project
.
update
(
import_params
)
@project
.
import_state
.
reload
.
schedule
@project
.
import_state
.
reload
.
schedule
end
end
...
@@ -66,11 +66,11 @@ class Projects::ImportsController < Projects::ApplicationController
...
@@ -66,11 +66,11 @@ class Projects::ImportsController < Projects::ApplicationController
end
end
end
end
def
import_params
def
import_params
_attributes
params
.
require
(
:project
).
permit
(
:import_url
)
[
:import_url
]
end
end
def
safe_
import_params
def
import_params
import_params
params
.
require
(
:project
).
permit
(
import_params_attributes
)
end
end
end
end
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