Set index headers for user id in Riak
This commit is contained in:
@@ -27,6 +27,7 @@ module RemoteStorage
|
||||
object = client.bucket("user_data").new("#{user}:#{category}:#{key}")
|
||||
object.content_type = "text/plain; charset=utf-8"
|
||||
object.data = data
|
||||
object.indexes.merge!({:user_id_bin => [user]})
|
||||
object.store
|
||||
rescue ::Riak::HTTPFailedRequest
|
||||
halt 422
|
||||
|
||||
Reference in New Issue
Block a user