public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
Search Repo:
Updated todo example to use Meta#first syntax.
thewordnerd (author)
Wed Apr 23 14:57:57 -0700 2008
commit  072b035bc7ef73c83bb248ccef7cc3e291debb5e
tree    490c111afd836a0710a0777b3ae51646567061d1
parent  5e354b3da560d855a904191b69bbfb0bcaff7e7a
...
38
39
40
41
 
42
43
44
...
38
39
40
 
41
42
43
44
0
@@ -38,7 +38,7 @@ end
0
 def complete_issue(prefix,description)
0
   todo_list = TodoList.find_or_create(:name => prefix)
0
   return unless todo_list
0
- if item = todo_list.items.find(:description => description).first
0
+ if item = todo_list.items.first(:description => description)
0
     item.done!
0
     list_issues
0
   else

Comments

    No one has commented yet.