globalize/globalize

FrozenError: can't modify frozen Hash on model reload

favrik opened this issue · 1 comments

gem 'activerecord', '5.2.4.2'
gem 'globalize', '5.3.0'

I'm getting this error when reloading a deleted model:

post = Post.create(title: 'test')
post.destroy
post.reload # => FrozenError: can't modify frozen Hash

This points me to lib/globalize/active_record/instance_methods.rb:109

I was expecting ActiveRecord::RecordNotFound instead of FrozenError, is this the expected behavior?

Thanks!!

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.