lib/ncmb/user.rb in ncmb-ruby-client-0.1.7 vs lib/ncmb/user.rb in ncmb-ruby-client-0.2.0
- old
+ new
@@ -23,10 +23,10 @@
def base_path
path = "/#{@@client.api_version}/#{@name}"
end
def put
- params = @fields
+ params = @fields.clone
session_key = params[:sessionToken]
[:objectId, :createDate, :updateDate, :sessionToken, :password].each do |name|
params.delete name
end
result = @@client.put path, params, session_key
\ No newline at end of file