This project is archived and is in readonly mode.

#509 ✓wontfix
Erik J. Sturcke

getProperty fails to identify boolean attributes

Reported by Erik J. Sturcke | December 3rd, 2008 @ 04:31 PM

In 1.2.1 getProperty, removeProperty and setProperty treat bools as object to identify boolean attributes, but it is an array. This leads to both false positives and negatives.

A simple fix is to associate bools with itself after extending the attributes hash:

Hash.extend(attributes, bools.associate(bools)); Hash.extend(attributes, camels.associate(camels.map(String.toLowerCase)));

bools = bools.associate(bools);

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 »

Shared Ticket Bins

People watching this ticket

Pages