-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rename backing fields (so that they don't clash with devise) #27
Conversation
This is not backward compatible and will leave a lot of garbage fields in existing documents set to Either way, this also needs an entry in CHANGELOG and potentially create an UPGRADING document. Thx. |
Got it, thanks. |
You can keep it open! Just add to this PR. |
I'm fine with a minor version bump and instructions about how to clean up the old fields, but could go either way. Customizability seems less pressing with the more specific field name. |
Who's in charge here? :) |
It's @dblock's world, I just live in it 👸 |
"Agreement" in something like this is when everybody can live with the results, even if sometimes they don't "love" it ;) The biggest issue I see with renaming the field is that cleanup is particularly complicated for existing projects across all models. We use this gem in a lot of places and if I am not mistaken there're a lot of instances that have a I am happy to help with customization if it seems too hard @stulentsev, btw. Do you want to try it or do you need help? |
@dblock I want to try it. And then I'll likely ask for help :) |
Bump @stulentsev |
@dblock hah, you know how it is. You solve the immediate problem and then there are more pressing things to attend to. :) |
I'm going to close this for now. There's a lot more work here to be done for it to be merged and there be dragons with renaming fields, anyone who feels like it can pick it up. See above for comments. |
yeah... |
Posting PR as requested in https://github.com/afeld/mongoid-locker/issues/26