Open hgujral opened 15 years ago
Searchlogic only generates ActiveRecord conditions as named scopes. Since your RDBMS does not know about the virtual attributes, this is impossible. Create your own named_scope, if neccessary, where you create the condition required for this to work.
Ben seems to show examples of "User.age_greater_than(20)" but age as an attribute is often used in models as a virtual attribute which calculates the current age from DOB.
When I use age as a virtual attribute and search on it, I get a "undefined method `age_greater_than' for #Class:0x48fff80"
What am I missing?