mrcljx / historical

DRY and serialization-free versioning for ActiveRecord
http://github.com/sirlantis/historical
MIT License
13 stars 0 forks source link

Can this be used with MongoMapper #1

Open fourfour opened 13 years ago

fourfour commented 13 years ago

I was looking for a versioning gem to use with MM and I ran across your gem. Can this be used with MM or just with AR? Cheers.

mrcljx commented 13 years ago

I just wrote an adapter for ActiveRecord ( lib/historical/active_record.rb ) which relies on AR's dirty-feature, the table attribute-list, and callbacks. Not very deep dependencies (maybe 10 function-calls) so you could try to extend Historical::ActiveRecord in your MM models and change the functions where needed.