diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-02-19 09:07:35 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-02-19 09:07:35 +0000 |
commit | 5f3f44e76fdf465910b7c6521568bb6a1e8bd641 (patch) | |
tree | 5cb537bd1e1789f57ccc31e2f34e351b1c1ef0dc /actionwebservice/lib/action_web_service/client/base.rb | |
parent | 418d487020d24e69b528fdbedfecb20a87f99fcb (diff) | |
download | rails-5f3f44e76fdf465910b7c6521568bb6a1e8bd641.tar.gz rails-5f3f44e76fdf465910b7c6521568bb6a1e8bd641.tar.bz2 rails-5f3f44e76fdf465910b7c6521568bb6a1e8bd641.zip |
ensure clients can handle APIs with named parameter signatures,
and test for this
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/client/base.rb')
-rw-r--r-- | actionwebservice/lib/action_web_service/client/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionwebservice/lib/action_web_service/client/base.rb b/actionwebservice/lib/action_web_service/client/base.rb index d01cffcd56..431b78c748 100644 --- a/actionwebservice/lib/action_web_service/client/base.rb +++ b/actionwebservice/lib/action_web_service/client/base.rb @@ -30,6 +30,10 @@ module ActionWebService # :nodoc: nil end end + + def lookup_class(klass) + klass.is_a?(Hash) ? klass.values[0] : klass + end end end end |