-
Notifications
You must be signed in to change notification settings - Fork 205
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
Fixing for mobility gem #344
base: master
Are you sure you want to change the base?
Conversation
Sorry for the long radio silence here, but do you have any extra info for why this is required? If you wanted me to merge this I'd love to see a failing test added, too. |
It seems this fixes a problem with the gems
Mobility adds additional properties for each language, e.g. for
It seems |
That makes sense. I'd be happy to merge this, but would still like to see a failing spec. |
I can confirm this bug and the solution provided works. |
This PR is still missing a test unfortunately—any chance you can add that here? |
@magnusvk its a bit tricky to create a test case for this as the conflict happens when mobility gem is added with reader settings. So The test scenario would be a new rails application with counter_culture and mobility gem added, and then a counter field added to a model that is also using translations using mobility. Not sure how such a test can be added into the PR but the one-liner does indeed solve the problem.. My application has mobility configured with 'container' backend, and then this error occurred in the scenario as above. Patch was added to sort this as per above PR to make it work. |
Maybe you don't have to go all the way to including the mobility gem, but instead just do what the gem does and declare an attribute the same way |
No description provided.