suweller / mongoid-autoinc

⬆ Auto incrementing fields for Mongoid documents
MIT License
62 stars 44 forks source link

Mongoid 3.0 #5

Closed slipstreamstudio closed 11 years ago

slipstreamstudio commented 11 years ago

Quick hack to make this work with mongoid 3.0 and moped (probably a better way of doing this but does the job)

matsimitsu commented 11 years ago

Woops, just noticed this pullreq, i'll take a look at it tomorrow, thanks!

ismaild commented 11 years ago

Has this been merged? I can only see the 2.0 version from ruby gems. Can use this repo to install, but not ideal.

suweller commented 11 years ago

We pushed the Mongoid 3.0 compatible gem to rubygems. You should be good now.

@lawrencecurtis & @slipstreamstudio thanks for your input and the code sample, we really appreciate it! We wrote tests, and added a version of this relying on Moped directly instead of Mongoid.

ismaild commented 11 years ago

thanks.