From fcfe3febd3cbf535dbd4ae47563b4876f7a42239 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Sun, 3 Apr 2005 00:12:11 +0000 Subject: 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 --- actionwebservice/lib/action_web_service/api/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionwebservice/lib/action_web_service/api') 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 -- cgit v1.2.3