diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-03-02 22:55:00 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-03-02 22:55:00 +0000 |
commit | 631340d5d1b6c3bc610960116226789c4f51eecc (patch) | |
tree | 31350110d18960be1234198ced169a2c1d3fbd73 /actionwebservice/lib/action_web_service/vendor/ws | |
parent | 6d688aa20c1075aa37134c2bfa9d7eae75f90437 (diff) | |
download | rails-631340d5d1b6c3bc610960116226789c4f51eecc.tar.gz rails-631340d5d1b6c3bc610960116226789c4f51eecc.tar.bz2 rails-631340d5d1b6c3bc610960116226789c4f51eecc.zip |
make the marshaler use the same set of columns as the code that generates
WSDL, avoids mismatches when there are associations in the AR model class.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/vendor/ws')
-rw-r--r-- | actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 3032639510..72f006b654 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 @@ -220,7 +220,9 @@ module WS return nil end soap_obj = soap_class.new(obj.class.instance_variable_get('@qname')) - obj.attributes.each do |key, value| + obj.class.columns.each do |column| + key = column.name.to_s + value = obj.send(key) soap_obj[key] = SOAP::Mapping._obj2soap(value, map) end soap_obj |