Skip to content


require 'facets' extends Fixnum with a 'length' method causing wp_count to return an incorrect count #2

alakra opened this Issue · 5 comments

5 participants


In finder.rb, in the wp_count method, there is a condition at the bottom of the method that checks
for whether the count responds to a length method. The popular facets gem breaks this. Perhaps, it might would be better to use is_a? instead of respond_to?

check finder.rb, line 238


having the same issue myself...



Thanks for patching up the problem. It works just fine.



This should be fixed now, not only this patch, but Facets has renamed the method.


Pulled! thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.