method

to_query

rails latest stable - Class: ActiveSupport::CoreExtensions::Hash::Conversions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

to_query(namespace = nil)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 69
        def to_query(namespace = nil)
          collect do |key, value|
            value.to_query(namespace ? "#{namespace}[#{key}]" : key)
          end.sort * '&'
        end