lib/appfuel/storage/repository/base.rb in appfuel-0.5.14 vs lib/appfuel/storage/repository/base.rb in appfuel-0.5.15
- old
+ new
@@ -241,9 +241,14 @@
def generate_uuid
SecureRandom.uuid
end
+ def url_token(nbr = 32)
+ nbr = Integer(nbr)
+ SecureRandom.urlsafe_base64(nbr)
+ end
+
private
def method_not_implemented_error
fail "must be implemented by a storage specific repository"
end
end