amco / dolly

Not an ORM for CouchDB in rails.
8 stars 3 forks source link

add enumerable to dolly collection completes #87 #119

Closed seancookr closed 8 years ago

seancookr commented 8 years ago

https://github.com/amco/dolly/issues/87

This adds the entire Enumerable module to the Dolly Collection, all defined from the each method.

I have neglected to add tests because the current collection tests should be proof of the validity of this fix https://github.com/amco/dolly/blob/87-add-enumerable-to-dolly-collection/test/collection_test.rb

EDIT:

Second attempt, use the class as a delegate of Set so that the modules are included naturally.

netlogics commented 8 years ago

:shipit:

rubenrails commented 8 years ago

:shipit:

javierg commented 8 years ago

:shipit: