extract method

This commit is contained in:
Carsten Otto 2017-03-18 20:27:13 +01:00 committed by Jyri-Petteri Paloposki
parent 7aacc1a919
commit e12981c827

View file

@ -95,6 +95,11 @@ class TodosController < ApplicationController
if is_multiple
create_multiple
else
create_single
end
end
def create_single
p = Todos::TodoCreateParamsHelper.new(params, current_user)
p.parse_dates unless mobile?
tag_list = p.tag_list
@ -160,7 +165,6 @@ class TodosController < ApplicationController
end
end
end
end
def create_multiple
p = Todos::TodoCreateParamsHelper.new(params, current_user)