lib/mls/models/photo.rb in mls-0.9.8 vs lib/mls/models/photo.rb in mls-0.9.9

- old
+ new

@@ -25,16 +25,16 @@ def self.create(attrs) attrs[:file].rewind url = MLS.url.dup url.user = nil url.path = "/api/photos" - response = RestClient.post(url.to_s, {:file => attrs[:file]}, MLS.headers) + response = RestClient.post(url.to_s, {:photo => attrs}, MLS.headers) attrs[:file].close unless attrs[:file].closed? MLS::Photo::Parser.parse(response.body) end end class MLS::Photo::Parser < MLS::Parser -end +end \ No newline at end of file