lib/heirloom/artifact/artifact_reader.rb in heirloom-0.1.0 vs lib/heirloom/artifact/artifact_reader.rb in heirloom-0.1.1

- old
+ new

@@ -7,14 +7,15 @@ end def show(args) domain = args[:name] id = args[:id] - sdb.select "select * from #{domain} where itemName() = '#{id}'" + items = sdb.select "select * from #{domain} where itemName() = '#{id}'" + items[id] end def exists?(args) - show(args).any? + show(args) != nil end private def sdb