From b5af9506a3462b57af0cecef597d2569e204c967 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Tue, 31 Jan 2017 10:40:17 -0500 Subject: [PATCH] Update Rails 4.1 note header. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6508a965..6a9bae9c 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ Compatibility * Works very well outside of Rails, you just need to install either the `json` (for MRI) or `json_pure` (for JRuby) gem. -Rails 4.1 Note --------------- +Note on Rails 4.1 and Greater +----------------------------- Due to [a change in ActiveRecord's `count` method](https://github.com/rails/rails/pull/10710) you will need to use `count(:all)` to explicitly count all columns ("*") when using a `near` scope. Using `near` and calling `count` with no argument will cause exceptions in many cases. -- GitLab