"can't convert nil into Hash" in Scopes
Hi,
thanks for fixing the search_count within scopes bug. I updated to the latest version. But now I experience another bug, which has been doing quite fine before ( the HEAD from two weeks ago)
When I use a String argument as the scope argument, e.g. (Video.with_status('foo').search 'bar')
it raises a
"can't convert nil into Hash" error in the active_record/scopes.rb line 52 thinking-sphinx/lib/thinking_sphinx/active_record/scopes.rb:57:in `merge!'
Doing some debugging, I found that the block.call(*args) resolves to nil, when *args is a String. This what not the case before the latest changes ...
Any ideas ?
Regards,
Uuuh man. Sorry, my fault ... didn't noticed that I wasn't feeding in a String, instead its "id" ... "something".id .... :)
Ah, so the bug no longer exists, then? :)
Yeah, sure.
cool, I'll close this ticket then.