#1433 accepted
Ted Han (knowtheory)

Querying with string condition keys causes explosions when keys collide with class methods

Reported by Ted Han (knowtheory) | October 12th, 2010 @ 03:59 PM | in 1.1.1

So for instance if i have a property called :name on a model (say Foo), and i try to query with Foo.all("name.like" => "%taco%"), the query will exploooode because Foo.name calls the classmethod and does not return the appropriate property.

Likewise if you define any other class methods which overload a property, the same behavior takes place.

I have attached a simple patch which addresses this specific issue below.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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