Use ActiveRecord 3 query syntax

Prevents AR deprecation warnings in Rails 4.

wice_grid_testbed is all green.