From 0f198eb58ece74409827f3d4a739e49a1a0ecab5 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Thu, 31 Mar 2005 09:12:10 +0000 Subject: remove ActiveRecordSoapMarshallable, can't reproduce the problem it was intended to fix. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../vendor/ws/marshaling/soap_marshaling.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'actionwebservice/lib/action_web_service') diff --git a/actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb b/actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb index 287a64291b..14c8d8401d 100644 --- a/actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb +++ b/actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb @@ -279,19 +279,5 @@ module WS return false end end - - module ActiveRecordSoapMarshallable - def allocate - obj = super - attrs = {} - self.columns.each{|c| attrs[c.name.to_s] = c.default} - obj.instance_variable_set('@attributes', attrs) - obj - end - end - - if Object.const_defined?('ActiveRecord') - ActiveRecord::Base.extend(ActiveRecordSoapMarshallable) - end end end -- cgit v1.2.3