diff options
Diffstat (limited to 'app/controllers/projects/imports_controller.rb')
-rw-r--r-- | app/controllers/projects/imports_controller.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/app/controllers/projects/imports_controller.rb b/app/controllers/projects/imports_controller.rb index 4640be015de..25a137eeb38 100644 --- a/app/controllers/projects/imports_controller.rb +++ b/app/controllers/projects/imports_controller.rb @@ -2,6 +2,7 @@ class Projects::ImportsController < Projects::ApplicationController include ContinueParams + include ImportUrlParams # Authorize before_action :authorize_admin_project! @@ -13,7 +14,7 @@ class Projects::ImportsController < Projects::ApplicationController end def create - if @project.update(import_params) + if @project.update(import_url_params) @project.import_state.reset.schedule end @@ -65,12 +66,4 @@ class Projects::ImportsController < Projects::ApplicationController redirect_to project_path(@project) end end - - def import_params_attributes - [:import_url] - end - - def import_params - params.require(:project).permit(import_params_attributes) - end end |