lib/fog/riakcs.rb in fog-1.11.1 vs lib/fog/riakcs.rb in fog-1.12.0
- old
+ new
@@ -69,12 +69,12 @@
end
end
module UserUtils
def update_riakcs_user(key_id, user)
- response = @s3_connection.put_object('riak-cs', "user/#{key_id}", Fog::JSON.encode(user), { 'Content-Type' => 'application/json' })
+ response = @s3_connection.put_object('riak-cs', "user/#{key_id}", MultiJson.encode(user), { 'Content-Type' => 'application/json' })
if !response.body.empty?
- response.body = Fog::JSON.decode(response.body)
+ response.body = MultiJson.decode(response.body)
end
response
end
def update_mock_user(key_id, user)