Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

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

Open
@solnic

Description

@solnic

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.


Created by Ted Han (knowtheory) - 2010-10-12 20:59:34 UTC

Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/1433

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions