lib/contentful/management/editor_interface.rb in contentful-management-2.4.0 vs lib/contentful/management/editor_interface.rb in contentful-management-2.5.0
- old
+ new
@@ -64,20 +64,12 @@
space_id: space.id,
environment_id: environment_id,
content_type_id: content_type.id,
editor_id: id
},
- { 'controls' => attributes.fetch(:controls) },
+ { 'controls' => attributes[:controls] || controls },
version: sys[:version]
)
- end
-
- # Saves the current editor interface.
- # @see _ README for details.
- #
- # @return [Contentful::Management::EditorInterface]
- def save
- update(controls: controls) if id
end
# Destroys an EditorInterface.
#
# Not Supported