searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

README.rdoc should mention searchlogic_lambda

Open ghost opened this issue 15 years ago • 0 comments

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.

ghost avatar Jan 15 '10 12:01 ghost