Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#1029

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

Reported by Manfred Stienstra · September 11th, 2008 @ 09:43 PM

State: committed
Milestone: 2.x
Assigned to: Michael Koziarski Michael Koziarski
Importance: none