rename method

This commit is contained in:
James Lopez 2016-05-12 17:16:35 +02:00
parent ef7f793dc4
commit f4ab8ea496

View file

@ -50,7 +50,7 @@ module Projects
@project.build_forked_project_link(forked_from_project_id: forked_from_project_id) @project.build_forked_project_link(forked_from_project_id: forked_from_project_id)
end end
process_import_data(import_data) save_project_and_import_data(import_data)
start_import if @project.import? start_import if @project.import?
@ -100,7 +100,7 @@ module Projects
end end
end end
def process_import_data(import_data) def save_project_and_import_data(import_data)
Project.transaction do Project.transaction do
@project.create_or_update_import_data(data: import_data[:data], credentials: import_data[:credentials]) if import_data @project.create_or_update_import_data(data: import_data[:data], credentials: import_data[:credentials]) if import_data
@project.save @project.save