lib/api_client/resource/base.rb in api_client-0.1.8 vs lib/api_client/resource/base.rb in api_client-0.1.9
- old
+ new
@@ -47,10 +47,11 @@
hash.delete('id') # This key is never required
hash
end
def remote_update
- self.class.update(self.id, payload)
+ scope = original_scope || self.class
+ scope.update(self.id, payload)
end
def remote_create
self.class.create(payload)
end