README.md in dase-5.0.0 vs README.md in dase-5.1.0

- old
+ new

@@ -22,11 +22,11 @@ billy.articles_count # => 2 ``` with conditions on associated records (only articles in year 2012) ``` - Author.includes_count_of(:articles, where: {year: 2012} ) + Author.includes_count_of(:articles, where: {year: 2012} ) ``` using lambda syntax (in v4.1 and greater) ``` Author.includes_count_of(:articles, -> { where(year: 2012) } ) @@ -47,12 +47,11 @@ | Rails version | Add this to Gemfile | |---------------|------------------------| | 3.2.x | gem 'dase', '~> 3.2.0' | | 4.0.x | ----- N/A ----- | | 4.1.x | gem 'dase', '~> 4.1.0' | -| 4.2.x | gem 'dase', '~> 4.2.0' | -| 5.1.x | gem 'dase', '~> 5.1.0' | +| 4.2.0.beta2 | gem 'dase', :github => 'vovayartsev/dase', :branch => 'rails-4-2' | ## Under the hood When a relation is "materialized", we run a custom preloader which calculates the hash of counters in a single SQL query like this: ``` @@ -69,11 +68,11 @@ * Using subquery in SELECT clause, or JOIN+SELECT+GROUP approach, as explained in [that video](http://www.youtube.com/watch?v=rJg3I-leoo4) ## Name origin The gem is named by the german mathematician [Johann Dase](http://en.wikipedia.org/wiki/Zacharias_Dase), -who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) and could add and multiply numbers very quickly. +who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) and could add and multiply numbers very quickly. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) @@ -81,6 +80,11 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/vovayartsev/dase/trend.png)](https://bitdeli.com/free "Bitdeli Badge") +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/vovayartsev/dase/trend.png)](https://bitdeli.com/free "Bitdeli Badge") + + + + +