Displaying 1 result from an estimated 1 matches for "rackutilsbytesize".
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
...hould be included before Rails 3.0 RC1:
* Use String#bytesize rather than String#length in exception templates:
This is a simple case where string length is checked, but bytes is needed,
so it breaks with string with multibyte chars.
https://rails.lighthouseapp.com/projects/8994/tickets/4727-use-rackutilsbytesize-instead-of-length-when-determining-request-content-length-for-showing-exceptions
* Add AS::Multibyte::Chars#titleize
This makes "café".mb_chars.titleize "do the right thing," in the sprit of a
few other patches I recently submitted.
https://rails.lighthouseapp.com/projects/89...