lib/shutl/resource/rest.rb in shutl_resource-1.4.0 vs lib/shutl/resource/rest.rb in shutl_resource-1.4.1
- old
+ new
@@ -34,13 +34,13 @@
def update_attributes(attrs)
attrs.each { |a, v| instance_variable_set(:"@#{a}", v) }
end
- def update!(attrs)
+ def update!(attrs, headers = {})
new_attributes = attributes.merge attrs
update_attributes(self.class.add_resource_id_to new_attributes)
- save
+ save(headers)
end
def save options={}
self.class.save self, options
end