lib/scrivito/workspace_data.rb in scrivito_sdk-1.0.0 vs lib/scrivito/workspace_data.rb in scrivito_sdk-1.1.0.rc1

- old
+ new

@@ -34,23 +34,9 @@ raise InternalError unless Hash === data && data["id"].present? @data = data assert_no_obj_classes end - def store_in_cache - CmsDataCache.write_workspace_data(id, to_hash) - end - - def content_state - @content_state ||= ContentState.find_or_create(content_state_id) if content_state_id - end - - def base_content_state - if base_content_state_id - @base_content_state ||= ContentState.find_or_create(base_content_state_id) - end - end - private def assert_no_obj_classes if @data['uses_obj_classes'] raise ScrivitoError, "The working copy titled #{title} has ObjClasses, which is no longer "\