My application doesn't need any database backend because it's kinda proxy server between client and another servers.
But I found that it would be nice to have all Active Record facilities (validation, associations and etc) in my project.
How to setup Active Record to not use database at all?
Ryan Bates in 219 cast "The Active Model" described only validation part but I need association facility.
Take a look at ActiveModel. That's what AR uses under the hood.
These two gems could be what you want:
activemodel-associations
activemodel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With