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

Not working properly with Rails 7.1.1 #628

Closed
andersplanting opened this issue Oct 21, 2023 · 1 comment
Closed

Not working properly with Rails 7.1.1 #628

andersplanting opened this issue Oct 21, 2023 · 1 comment

Comments

@andersplanting
Copy link

I have a Rails app that I recently updated to 7.1.1. I've noticed that Mobility stopped working. When updating a model attribute the value doesn't change. And when creating a new record, the attribute remains nil.

Context

Tested both with v1.2.9 and 1.3.0.rc1. Same problem for both versions. I use Postgres in my app.

My model looks like this:

class Profession < ApplicationRecord
  extend Mobility

  translates :name, type: :string
end

If I comment out translates :name, type: :string it updates the attribute value.

Expected Behavior

Should update attribute value on update and not have a nil value on create.

Actual Behavior

See screenshot below for details:

Screenshot 2023-10-21 at 19 04 00
@shido76
Copy link

shido76 commented Jan 3, 2024

Same for me, anyone else?

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

2 participants