diff options
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r-- | lib/cgi.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index a6003d99a6..43a5aa89f0 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1152,11 +1152,9 @@ class CGI end alias last first def to_a - @params - end - def to_ary # to be rhs of multiple assignment - @params + @params || [self] end + alias to_ary to_a # to be rhs of multiple assignment end # Get the value for the parameter with a given key. |