binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.39k stars 133 forks source link

README.rdoc should mention searchlogic_lambda #60

Open ghost opened 14 years ago

ghost commented 14 years ago

I've just spent two hours not understanding why one of my search options was not correctly selected. I finally traced it to me using a named_scope with a lambda and an integer parameter. I took me a long time to find the doc that explained that I should use searchlogic_lambda in lib/searchlogic/core_ext/object.rb ... (not a very intuitive location)

I think that the README.rdoc file should mention that you have to use searchlogic_lambda if you need a named_scope or a scope_procedure with a lambda and a non-string parameter.