aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/to_param.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move to_param to to_query, also Improve testsAkshay Vishnoi2014-06-201-60/+1
|
* No need the else clauseRafael Mendonça França2014-05-041-2/+0
|
* [Fixes #14948] Hash#to_query: Changed a way how empty hash and empty array ↵Bogdan Gusiev2014-05-031-6/+6
| | | | | | | | | | | are serialized Empty Hash or Array should not present in serialization result {a: []}.to_query # => "" {a: {}}.to_query # => "" For more info see #14948.
* Refatoring the method to avoid shot-circuit returnRafael Mendonça França2014-02-051-4/+7
|
* Fixed "Hash#to_param confused by empty hash values #13892"Hincu Petru2014-02-051-0/+1
|
* use destructive sort on array in Hash#to_param for performance gains.Vipul A M2013-05-051-1/+1
| | | | Check https://gist.github.com/vipulnsward/6aad158c06a22f931a71 to see the gains.
* update to_param docs [ci skip]Francesco Rodriguez2012-07-271-2/+5
|
* reorganizes the RDoc of Hash#to_paramXavier Noria2011-03-071-6/+14
|
* Improved docs for Hash#to_param methodDalibor Nasevic2011-03-061-3/+2
|
* Revert "Quick fix for not escaping []s (not ideal)"Santiago Pastorino2010-11-181-3/+1
| | | | | | | | | According to http://www.ietf.org/rfc/rfc2616.txt and http://tools.ietf.org/rfc/rfc3986.txt [ and ] are reserved characters and should be escaped using "%" HEX HEX This reverts commit 856d2fd874d72dd9f83204affff4edfef3308361 and 1ee9b40b18a0bed5bb10a0785f7e2730bac983f6..
* revises RDoc of Hash#to_param to be more precise about orderingXavier Noria2010-09-281-2/+2
|
* let Hash#to_param and Hash#to_query sort againXavier Noria2010-09-281-2/+3
| | | | | This was a regression introduced in 5c858220085dc4ddc1bec496747059dfbe32f1da. We bring sorting back because people rely on it, eg for constructing consistent cache keys.
* Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_paramSantiago Pastorino2010-07-221-1/+1
|
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-201-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* A small rdoc change made on lines 39 and 41 on ↵jacortinas2010-05-251-2/+2
| | | | activesupport/lib/active_support/core_ext/object/to_param.rb. It looks like the method name might have been changed, and the comments were never changed to coincide with the new method name.
* fixes a couple of wrong requiresXavier Noria2010-01-011-1/+1
|
* to_param.rb needs active_support/core_ext/object/to_queryXavier Noria2010-01-011-0/+2
|
* Failing tests for to_param/to_query not escaping "[]"Joshua Peek2009-12-021-1/+1
|
* Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-021-0/+47