summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2009-08-23 20:46:29 -0700
committerZack Hobson2009-08-23 20:46:38 -0700
commitd82f777ee4e3e89cfab56afb92297a6330dd8199 (patch)
tree39158e1d5bd531286d18bfd1ae190006f54379be /lib
parentd98c7b2dc30e088fe56cc26e4f7723c4c7b18d24 (diff)
downloadhcl-d82f777ee4e3e89cfab56afb92297a6330dd8199.tar.bz2
Another attempt at closing #26.
This time there are some tests!
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/day_entry.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hcl/day_entry.rb b/lib/hcl/day_entry.rb
index bfc6dbf..3405108 100644
--- a/lib/hcl/day_entry.rb
+++ b/lib/hcl/day_entry.rb
@@ -23,6 +23,10 @@ module HCl
end
end
+ def notes
+ super || @data[:notes] = ''
+ end
+
# Append a string to the notes for this task.
def append_note new_notes
# If I don't include hours it gets reset.