lib/aitch/ext/to_query.rb in aitch-1.1.0 vs lib/aitch/ext/to_query.rb in aitch-1.2.0

- old
+ new

@@ -35,15 +35,9 @@ self end end class Array - # Calls <tt>to_param</tt> on all its elements and joins the result with - # slashes. This is used by <tt>url_for</tt> in Action Pack. - def to_param - collect(&:to_param).join "/" - end - # Converts an array into a string suitable for use as a URL query string, # using the given +key+ as the param name. # # ["Rails", "coding"].to_query("hobbies") # # => "hobbies%5B%5D=Rails&hobbies%5B%5D=coding"