summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-01-13 14:17:25 +0100
committermguetlein <martin.guetlein@gmail.com>2011-01-13 14:17:25 +0100
commitc89ceb400345efbc4c47e722e7dfa0938f013aab (patch)
treef84250a1cafd8df8f9aa409e48673593f27c97af
parent2ce3efc21035e622c14688ec8bb4129982f4b0c0 (diff)
fix description loading
-rw-r--r--application.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index ffda10d..91590a3 100644
--- a/application.rb
+++ b/application.rb
@@ -27,7 +27,8 @@ class Task
OT.hasStatus => @hasStatus,
OT.resultURI => @resultURI,
OT.percentageCompleted => @percentageCompleted,
- DC.description => @description,
+ #text fields are lazy loaded, using member variable can cause description to be nil
+ DC.description => description
#:due_to_time => @due_to_timer
}
end
@@ -148,7 +149,7 @@ put '/:id/:hasStatus/?' do
end
halt 500,"could not save task" unless task.save
-
+
end
# Delete a task