I updated from RoR 4.0.4 to 4.1.1 to apply the latest security patch and it appears pg_search broke.
Here\'s a error:
PG::SyntaxError: ERROR: syn
This is weird - when i call
=@supports.count
the error is generated but it is a valid object. It's a bit hacky but this is working for now:
=@supports.to_a.count
There is a good conversation here to clarify the problem.
@supports.count(:all)
should work, the @supports.count
syntax got deprecated in rails 4.1.1