Class: Array

Inherits:
Object show all
Includes:
ActiveSupport::CoreExtensions::Array::Access, ActiveSupport::CoreExtensions::Array::Conversions, ActiveSupport::CoreExtensions::Array::ExtractOptions, ActiveSupport::CoreExtensions::Array::Grouping, ActiveSupport::CoreExtensions::Array::RandomAccess
Defined in:
lib/active_support/core_ext/array.rb,
lib/active_support/core_ext/blank.rb,
lib/active_support/core_ext/hash/conversions.rb

Overview

:nodoc:

Direct Known Subclasses

ActiveSupport::OrderedHash

Instance Method Summary collapse

Methods included from ActiveSupport::CoreExtensions::Array::RandomAccess

#rand

Methods included from ActiveSupport::CoreExtensions::Array::Grouping

#in_groups_of, #split

Methods included from ActiveSupport::CoreExtensions::Array::ExtractOptions

#extract_options!

Methods included from ActiveSupport::CoreExtensions::Array::Conversions

included, #to_formatted_s, #to_param, #to_sentence, #to_xml

Methods included from ActiveSupport::CoreExtensions::Array::Access

#from, #to

Instance Method Details

#to_query(key) ⇒ Object

:nodoc:



19
20
21
# File 'lib/active_support/core_ext/hash/conversions.rb', line 19

def to_query(key) #:nodoc:
  collect { |value| value.to_query("#{key}[]") } * '&'
end