#92 ✓resolved
etaque (at gmail)

Conflict with a scope on a column beginning with the name of an association

Reported by etaque (at gmail) | June 16th, 2009 @ 05:38 PM

This is a duplicate of the ticket on github (maybe the wrong place to post tickeds ?) :
http://github.com/binarylogic/searchlogic/issues#issue/2

Giving those models :
User has_many :classifieds
Classified

User has the column "classifieds_count".

The following search throws an error, because Searchlogic seems to ignore User.classifieds_count column and try to search on the associated Classified model :
User.classifieds_count_greater_than(5)

undefined method count_greater_than' for #<Class:0x3db9234>

Thanks
Emilien

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 ยป

Provides common named scopes and object based searching.

People watching this ticket

Tags

Pages