From 593d0085b4010e69e1f4f689f424c275faddd3fe Mon Sep 17 00:00:00 2001 From: Peter McCracken Date: Tue, 14 Jan 2014 10:37:33 -0500 Subject: [PATCH] don't bother overriding ActiveResource::Base.build --- lib/active_resource/base_ext.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/active_resource/base_ext.rb b/lib/active_resource/base_ext.rb index 30b32e119..1474f4c70 100644 --- a/lib/active_resource/base_ext.rb +++ b/lib/active_resource/base_ext.rb @@ -17,10 +17,5 @@ def self.delete(id, options = {}) connection.delete(element_path(id, options), headers) end end - - def self.build(attributes = {}) - attrs = self.format.decode(connection.get("#{new_element_path}", headers).body).merge(attributes) - self.new(attrs) - end end end