README.md in active_enumerable-1.0.0 vs README.md in active_enumerable-1.1.0
- old
+ new
@@ -22,10 +22,12 @@
$ gem install active_enumerable
## Usage
+[Documentation](http://www.rubydoc.info/gems/active_enumerable/1.0.0)
+
### ActiveRecord Like Querying
```ruby
require "active_enumerable"
@@ -45,9 +47,12 @@
customers.sum(:credit)
#=> 3000
customers << { paid: true, credit: 1500 } # accepts Hashes
+
+customers.where{ paid && credit == 1000 }
+# => <#Customers [{paid: true, credit: 1000}]
class Customer
attr_reader :paid, :credit
def initialize(paid:, credit:)
@paid = paid