lib/event.rb in inbox-0.18.2 vs lib/event.rb in inbox-1.0.0
- old
+ new
@@ -29,10 +29,10 @@
return hash
end
def rsvp!(status, comment)
- url = @_api.url_for_path("/n/#{@namespace_id}/send-rsvp")
+ url = @_api.url_for_path("/send-rsvp")
data = {:event_id => @id, :status => status, :comment => comment}
::RestClient.post(url, data.to_json, :content_type => :json) do |response, request, result|
json = Inbox.interpret_response(result, response, :expected_class => Object)
self.inflate(json)