cardmagic/classifier — pull request #13 by ivanacostarubio (2012-11-14 18:59:07+00:00)
Title: Monkey Patch on Array. 

Hello there,

I am using the classifier gem with Mongoid. There was a little problem with the way Array was monkey patch.

https://gist.github.com/6f0a88c1be9e5494e525

The two files complaining:

https://github.com/cardmagic/classifier/blob/master/lib/classifier/extensions/vector.rb#L16

https://github.com/mongoid/mongoid/blob/5f236a77530cc6330f0e0b42f0864f3c31709344/lib/mongoid/observer.rb#L131

It get's solve using reduce.

<3

Thanks toy for putting this library together. It has helped us tremendously.