lib/flydata/api/base.rb in flydata-0.0.2.3 vs lib/flydata/api/base.rb in flydata-0.0.3.rc1
- old
+ new
@@ -7,10 +7,10 @@
def list(params={})
@client.get(@url_path)
end
def create(params={})
params.each {|k, v| @url_path.gsub!(/:#{k}/, v.to_s)}
- @client.post(@url_path, @model_name => params)
+ @client.post(@url_path, nil, @model_name => params)
end
end
end
end