Skip to content
Snippets Groups Projects
Commit c46346ba authored by Alex Reisner's avatar Alex Reisner
Browse files

Move Rails 4.1+ count issue lower in README.

parent f5b6bef3
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,6 @@ Compatibility
* Works very well outside of Rails, you just need to install either the `json` (for MRI) or `json_pure` (for JRuby) gem.
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.
Installation
------------
......@@ -1270,6 +1264,10 @@ Please DO NOT use GitHub issues to ask questions about how to use Geocoder. Site
### Known Issues
#### Using `count` with Rails 4.1+
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.
#### Using `near` with `includes`
You cannot use the `near` scope with another scope that provides an `includes` option because the `SELECT` clause generated by `near` will overwrite it (or vice versa).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment