README.md in calculated_attributes-0.0.18 vs README.md in calculated_attributes-0.0.19
- old
+ new
@@ -89,10 +89,10 @@
## Known Issues
In Rails 4.x, you cannot call `count` on a relation with calculated attributes, e.g.
```ruby
-`Post.scoped.calculated(:comments_count).count`
+Post.scoped.calculated(:comments_count).count
```
will error. This is because of an [ActiveRecord issue](https://github.com/rails/rails/blob/master/activerecord/lib/active_record/relation/calculations.rb#L368-L375) that does not permit Arel nodes in the count method.
## Contributing
\ No newline at end of file