Skip to content
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

Mobility 1.3.x returns Hash instead of HashWithIndifferentAccess on Container back end. #672

Open
ngobin opened this issue Feb 26, 2025 · 0 comments

Comments

@ngobin
Copy link

ngobin commented Feb 26, 2025

Rails 8.0.1 (and 7.2.2 too), Ruby 3.4.2, JSONB container backend, postgresql, and ActiveRecord.

Mobility 1.2.9:

> myobject.translations.class
=> ActiveSupport::HashWithIndifferentAccess

Mobility 1.3.2

> myobject.translations.class
=> Hash

This is not a huge deal, and straightforward to work around, but it broke some tests during our upgrade from 1.2.9 -> 1.3.2 that had lines like myobject.translations.slice(:en).

Perhaps it is not an issue, but I thought I would bring it up in case this change in behaviour is unintended and likely to have other consequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant