lib/active_resource/singleton.rb in activeresource-5.1.1 vs lib/active_resource/singleton.rb in activeresource-6.0.0
- old
+ new
@@ -86,11 +86,10 @@
connection.delete(singleton_path, self.class.headers)
end
protected
-
# Update the resource on the remote service
def update
connection.put(singleton_path(prefix_options), encode, self.class.headers).tap do |response|
load_attributes_from_response(response)
end
@@ -103,10 +102,9 @@
load_attributes_from_response(response)
end
end
private
-
def singleton_path(options = nil)
self.class.singleton_path(options || prefix_options)
end
end
end