finish doing what the last commit started
This commit is contained in:
parent
7ed8e02516
commit
e1467ac364
@ -59,7 +59,7 @@ class API extends Application
|
||||
switch @params.action
|
||||
when "new"
|
||||
unless @params.content or tonumber @params.id
|
||||
@params.content = @params.id
|
||||
@params.content = unescape(@params.id)
|
||||
assert_valid @params, { {"content", exists: true, min_length: 1, "Task content not specified."} }
|
||||
@task = assert_model Tasks\create user_id: @user.id, content: @params.content
|
||||
send_task(@)
|
||||
|
Loading…
Reference in New Issue
Block a user