soveran / ohm

Object-Hash Mapping for Redis

Home Page:http://ohm.keyvalue.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

active model compatibility

ronan-mch opened this issue · comments

Hey! I'm working with OHM alongside standard Rails objects in a Rails application and I've created a wrapper around Ohm::Model to make my OHM objects Active Model compatible. I was just wondering whether this would be something you'd be interested in having for the Contributions library? I'm still a bit of a Rails neophyte so a code review from a more experienced Rails programmer would be useful. You can see some of the code here. Obviously it needs a polish and a test spec before I'd consider submitting it, just wanted to know whether it's worth my time to do this work.

Hey there :-)

We had something like that in ohm-contrib in the past, but it was removed at some point. As most of us Ohm users don't interact with Rails, I guess it just grew old and was cleaned up. I think if you can create something like a plugin, it may be useful for some other people. I don't think we will merge it with the core library because as we don't use it, it would be hard to maintain, but if you find it useful, then I'd like to encourage you to release a gem or something with that code. Thanks!

Ok, thanks for the info and thanks for Ohm, I really enjoy working with it!