From c89ceb400345efbc4c47e722e7dfa0938f013aab Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 13 Jan 2011 14:17:25 +0100 Subject: fix description loading --- application.rb | 5 +++-- 1 file 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 -- cgit v1.2.3