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

ActiveModel::UnkownAttributeError in Rails 5.2 #37

Closed
destructobeam opened this issue Sep 10, 2019 · 5 comments
Closed

ActiveModel::UnkownAttributeError in Rails 5.2 #37

destructobeam opened this issue Sep 10, 2019 · 5 comments

Comments

@destructobeam
Copy link

Hi there,

It looks like when an attribute is removed from a StoreModel::Model and a value exists for it in the JSON, Rails is raising an ActiveModel::UnkownAttributeError when deserialising from the database. This is happening to me on a nested model.

Possibly related to issue #22

Thanks!

@DmitryTsepelev
Copy link
Owner

Hi @destructobeam! Thanks for pointing that out, I'll try to investigate it next week

@DmitryTsepelev
Copy link
Owner

@destructobeam I've written a spec for this case, and it seems to be working. Could you please review my PR and let me know what's missing or come up with a failing test? Also, please check what version you're using, #unknown_attributes was added in 0.5.0 and worked only with singular attributes, array support was added in 0.5.3.

@DmitryTsepelev
Copy link
Owner

Hi @destructobeam, did you have a chance to take a look at it?

@destructobeam
Copy link
Author

@DmitryTsepelev Not yet sorry, been pretty busy. Will be able to take a look this week or next though.

@DmitryTsepelev
Copy link
Owner

Closing the issue for now

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