From e9a6658b91088eb6f826249e36f2f97d9f7e0d94 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Wed, 16 Apr 2014 13:52:05 -0400 Subject: [PATCH] Add note about Rails 4.1 and ActiveRecord `count`. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 06f4efeb..6cc9efff 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,12 @@ 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 +-------------- + +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. + + Installation ------------ -- GitLab