diff options
Diffstat (limited to 'actionwebservice/lib/action_web_service/support/signature_types.rb')
-rw-r--r-- | actionwebservice/lib/action_web_service/support/signature_types.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionwebservice/lib/action_web_service/support/signature_types.rb b/actionwebservice/lib/action_web_service/support/signature_types.rb index a7ee2fc773..65f63d16e1 100644 --- a/actionwebservice/lib/action_web_service/support/signature_types.rb +++ b/actionwebservice/lib/action_web_service/support/signature_types.rb @@ -2,6 +2,9 @@ module ActionWebService # :nodoc: module SignatureTypes # :nodoc: def canonical_signature(signature) return nil if signature.nil? + unless signature.is_a?(Array) + raise(ActionWebServiceError, "Expected signature to be an Array") + end i = -1 signature.map{ |spec| canonical_signature_entry(spec, i += 1) } end |