Commit 5ca7c413 by Rocky Duan

add closed to allowd update attrs for threads

parent a7924cd3
......@@ -134,7 +134,7 @@ get "#{api_prefix}/threads/:thread_id" do |thread_id|
end
put "#{api_prefix}/threads/:thread_id" do |thread_id|
thread.update_attributes(params.slice(*%w[title body]))
thread.update_attributes(params.slice(*%w[title body closed]))
if params["tags"]
thread.tags = params["tags"]
thread.save
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment