diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-17 22:20:09 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-17 22:20:09 +0000 |
commit | d4b27a0b36109c6ded5dba57db63d4ff12ec74d1 (patch) | |
tree | 9676cce672fec31da46a8de358e68c152e44528e /actionwebservice/test/abstract_client.rb | |
parent | d712310518dcfe42966e7de936794c9a816b0e21 (diff) | |
download | rails-d4b27a0b36109c6ded5dba57db63d4ff12ec74d1.tar.gz rails-d4b27a0b36109c6ded5dba57db63d4ff12ec74d1.tar.bz2 rails-d4b27a0b36109c6ded5dba57db63d4ff12ec74d1.zip |
Fix soap type registration of multidimensional arrays (closes #4232) [Kent]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/test/abstract_client.rb')
-rw-r--r-- | actionwebservice/test/abstract_client.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionwebservice/test/abstract_client.rb b/actionwebservice/test/abstract_client.rb index c5484b6b62..5207d8ef21 100644 --- a/actionwebservice/test/abstract_client.rb +++ b/actionwebservice/test/abstract_client.rb @@ -34,6 +34,10 @@ module ClientTest member :user, User member :users, [User] end + + class WithMultiDimArray < ActionWebService::Struct + member :pref, [[:string]] + end class API < ActionWebService::API::Base api_method :void @@ -48,6 +52,7 @@ module ClientTest api_method :user_return, :returns => [User] api_method :with_model_return, :returns => [WithModel] api_method :scoped_model_return, :returns => [Accounting::User] + api_method :multi_dim_return, :returns => [WithMultiDimArray] end class NullLogOut @@ -124,6 +129,10 @@ module ClientTest def scoped_model_return Accounting::User.find(1) end + + def multi_dim_return + WithMultiDimArray.new :pref => [%w{pref1 value1}, %w{pref2 value2}] + end end class AbstractClientLet < WEBrick::HTTPServlet::AbstractServlet |