-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add support for multiple locales on Entries #72
Conversation
5809244
to
caa2814
Compare
caa2814
to
c9e2939
Compare
expect(asset.file.properties[:details]['size']).to eq 522943 | ||
expect(asset.file.properties[:details][:image]['width']).to eq 5800 | ||
expect(asset.file.properties[:details][:image]['height']).to eq 4350 | ||
expect(asset.file.properties[:details][:size]).to eq 522943 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a breaking change, can we avoid that?
d815a22
to
f529ed5
Compare
Hey @neonichu I found what was causing the breaking change and fixed it, now everything should work 👍 |
!self.is_a?(Asset) && | ||
!is_location?(value) && | ||
!is_link?(value) && | ||
!is_image?(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, can we maybe reverse the logic here? Otherwise, I could see us ending up with inconsistencies in which keys are symbols and which are strings very easily if we don't remember amending the list of opt-out cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be address in a future cleanup of nested locale handling in general, see #73
@neonichu can we merge this? We need it for |
@dlitvakb Yes, out of GH notifications, out of mind 😞 |
Add support for multiple locales on Entries
Fixes contentful_middleman/#39