diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-19 14:04:21 +0200 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-19 14:04:21 +0200 |
commit | e7b7e55f6e7dc6ce19c53914f38b29b347d49558 (patch) | |
tree | b7f5f8bd95f2f4e398f423ba2edabc8ec6346d64 | |
parent | 410c0c21e4c441c1cce66614ba80f2125911ae6a (diff) |
adding description field
-rw-r--r-- | application.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 2270c59..7ef408a 100644 --- a/application.rb +++ b/application.rb @@ -15,6 +15,7 @@ class Task property :status, String, :default => "created" property :created_at, DateTime property :finished_at, DateTime + property :description, Text is :tree, :order => :created_at end @@ -52,6 +53,7 @@ end put '/:id/:status/?' do task = Task.get(params[:id]) task.status = params[:status] unless /pid|parent/ =~ params[:status] + task.description = params[:description] if params[:description] case params[:status] when "completed" |