-
Notifications
You must be signed in to change notification settings - Fork 802
[WIP] Convert from Virtus to ActiveAttr #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@ryansch I like the idea itself -- many people seem to have performance and other issues with Virtus. What I'm thinking though, is that it would be best to make this support pluggable, in the spirit of "adapters" we have in My reasoning would not be of academical, but of practical nature: so we rip out Virtus, add ActiveAttr, then after some time something better comes, we again change the code, etc etc etc. Can you give it some thinking and maybe play with it a bit? |
I was wondering the same thing. Honestly the contract we have with the model is pretty thin so making this pluggable would be pretty easy. |
I've paired this down to just the active_attr stuff. I'll try to add the plugin architecture in the next couple weeks. |
That would be awesome! Take your time and please ping me whenever you'd like to get some feedback or ping-pong something. |
c202b4c
to
3d2dd66
Compare
Just FYI, I haven't forgotten about this. |
@ryansch, that's great to hear :) Take your time! |
@ryansch it looks like original author of It's been a year since last commit in |
I think I'd still like to add a pluggable interface so you can use whatever you want. :-) We'll just have to decide what the default is. Edit: By the author's own admission |
@ryansch you're right. I'm just thinking outloud. Upd. Realized |
+++ :) (It's just a question how much benefit would be in abstracting everything away like that...) |
0c70d25
to
c05022b
Compare
I'm going to close this, as it's no longer relevant with the removal of Elasticsearch::Persistence::Model. |
🎉 |
I've had so many issues with the way Virtus decides to do things that I finally gave up and ripped it out in favor of ActiveAttr.