lib/toy/persistence.rb in toystore-0.5 vs lib/toy/persistence.rb in toystore-0.6

- old
+ new

@@ -23,21 +23,11 @@ def has_cache? !@cache.nil? end - def namespace(new_namespace=nil) - if new_namespace.nil? - @namespace ||= self.name - else - @namespace = new_namespace - end - - @namespace - end - def store_key(id) - [namespace, id].join(':') + id end def create(attrs={}) new(attrs).tap { |doc| doc.save } end \ No newline at end of file