riak-ripple / ripple

A rich Ruby modeling layer for Riak, Basho's distributed database
Other
619 stars 152 forks source link

RObject#url doesn't know about load-balancing #249

Closed johnae closed 12 years ago

johnae commented 12 years ago

Below method in RObject to get the url doesn't know about load-balancing.

# Generates a URL representing the object according to the client, bucket and key.
# If the key is blank, the bucket URL will be returned (where the object will be
# submitted to when stored).
def url
  segments = [ @bucket.client.http_paths[:prefix], escape(@bucket.name)]
  segments << escape(@key) if @key
  @bucket.client.http.path(*segments).to_s
end
seancribbs commented 12 years ago

Moved to https://github.com/basho/riak-ruby-client/issues/3