lib/scrivito/workspace.rb in scrivito_sdk-0.50.1 vs lib/scrivito/workspace.rb in scrivito_sdk-0.60.0.rc1
- old
+ new
@@ -77,11 +77,11 @@
# @return [Scrivito::Workspace]
def self.find_by_title(title)
all.detect { |workspace| workspace.title == title }
end
- delegate :content_state, :base_revision_id, :base_content_state, to: :data
+ delegate :content_state, :base_revision_id, :base_content_state, :uses_obj_classes, to: :data
# Create a new workspace
# @api public
# @param [Hash] attributes
# @return [Scrivito::Workspace]
@@ -242,9 +242,10 @@
end
# Returns all obj classes of this working copy.
#
# @api public
+ # @deprecated
#
# @example Find the obj class named "Homepage" in the "rtc" {Workspace}.
# Workspace.find('rtc').obj_classes['Homepage']
#
# @return {ObjClassCollection}