You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, looks like we can check if a resource has ever been published, using my_entry.published?.
But that returns true even if the entry has been changed.
Is the proper approach to check if my_entry["sys"]["updatedAt"] > my_entry["sys"]["publishedAt"]?
Is it worth adding a changed? method?
The text was updated successfully, but these errors were encountered:
For 2, #changed? may be a bad name, maybe #pending_changes? is better, and yes, can be added. But that would also mean I would need to implement #dirty? in order to differentiate changed values in the object itself vs changed values in the API.
I'll be looking into adding this very soon, as I'm going to be working this week on adding a few new features to this SDK.
https://github.com/contentful/contentful-management.rb#entries
Currently, looks like we can check if a resource has ever been published, using
my_entry.published?
.But that returns true even if the entry has been changed.
my_entry["sys"]["updatedAt"] > my_entry["sys"]["publishedAt"]
?changed?
method?The text was updated successfully, but these errors were encountered: