This project is archived and is in readonly mode.

#1029 ✓committed
Manfred Stienstra

Fix AR::Base.quote_bound_value for AS::M::Chars values

Reported by Manfred Stienstra | September 11th, 2008 @ 09:43 PM | in 2.x

Because of an explicit check on the String class Chars objects got mapped and quoted instead of just quoted.

So quote_bound_value("A\nB".chars) got converted to "'A','B'".

This patch adds String#acts_like_string? and AS::M::Chars#acts_like_string? to solve this in a maintainable manner.

Related to: #980

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages