updated gem for query rails