Skip to content

Commit

Permalink
Merge pull request #94 from Shopify/remove_activeresource_build
Browse files Browse the repository at this point in the history
Remove the ActiveResource::Base.build method override
  • Loading branch information
peterjm committed Jan 14, 2014
2 parents a7dad7f + 593d008 commit ca05930
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/active_resource/base_ext.rb
Expand Up @@ -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

0 comments on commit ca05930

Please sign in to comment.