aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib/action_web_service/api/base.rb
diff options
context:
space:
mode:
authorLeon Breedt <bitserf@gmail.com>2005-04-03 00:12:11 +0000
committerLeon Breedt <bitserf@gmail.com>2005-04-03 00:12:11 +0000
commitfcfe3febd3cbf535dbd4ae47563b4876f7a42239 (patch)
tree70d71cad02dc40832a3c0fb5be005edad40a412b /actionwebservice/lib/action_web_service/api/base.rb
parent353497458b460d03114905e001f782c6f0b463fa (diff)
downloadrails-fcfe3febd3cbf535dbd4ae47563b4876f7a42239.tar.gz
rails-fcfe3febd3cbf535dbd4ae47563b4876f7a42239.tar.bz2
rails-fcfe3febd3cbf535dbd4ae47563b4876f7a42239.zip
allow selecting the protocol to use when invoking the
scaffolded method. fix bug in walking delegated container services. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/api/base.rb')
-rw-r--r--actionwebservice/lib/action_web_service/api/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionwebservice/lib/action_web_service/api/base.rb b/actionwebservice/lib/action_web_service/api/base.rb
index c9fb9f967f..4548856d86 100644
--- a/actionwebservice/lib/action_web_service/api/base.rb
+++ b/actionwebservice/lib/action_web_service/api/base.rb
@@ -195,7 +195,7 @@ module ActionWebService # :nodoc:
private
def friendly_param(type, show_name=true)
name = type.name.to_s
- type_type = type.type.to_s
+ type_type = type.array?? type.element_type.type.to_s : type.type.to_s
str = type.array?? (type_type + '[]') : type_type
show_name ? (str + " " + name) : str
end