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

Version 1.3.1 has breaking changes (as well as 1.3.0) #662

Closed
kapso opened this issue Dec 8, 2024 · 1 comment
Closed

Version 1.3.1 has breaking changes (as well as 1.3.0) #662

kapso opened this issue Dec 8, 2024 · 1 comment

Comments

@kapso
Copy link

kapso commented Dec 8, 2024

class Blog < ApplicationRecord
  extend Mobility

  translates :title, dirty: true
end


blog = Blob.new
blog.title

(irb):5:in `<main>': undefined method `[]' for nil (NoMethodError)

          translations[locale.to_s]
                      ^^^^^^^^^^^^^

The above issue does not happen in 1.2.9

Config

Mobility.configure do
  plugins do
    backend :jsonb
    active_record

    reader
    writer

    cache

    dirty
    presence
  end
end
@shioyama
Copy link
Owner

shioyama commented Dec 9, 2024

Did you read the release notes for 1.3.0? It says right there: there are breaking changes. This is not a bug.

@shioyama shioyama closed this as completed Dec 9, 2024
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