lib/pseudocephalopod.rb in pseudocephalopod-0.1.0 vs lib/pseudocephalopod.rb in pseudocephalopod-0.2.0
- old
+ new
@@ -18,11 +18,15 @@
slug = self.with_counter(prefix, counter)
end
slug
end
+ def uuid
+ @uuid ||= UUID.new
+ end
+
def generate_uuid_slug
- UUID.new.generate
+ uuid.generate
end
def last_known_slug_id(scope, slug)
Pseudocephalopod::Slug.id_for(Pseudocephalopod.key_for_scope(scope), slug)
end
\ No newline at end of file