app/controllers/scrivito/workspaces_controller.rb in scrivito_sdk-0.60.0 vs app/controllers/scrivito/workspaces_controller.rb in scrivito_sdk-0.65.0.rc1
- old
+ new
@@ -7,10 +7,11 @@
def index
@workspaces = all_workspaces.select do |workspace|
can_user_access_workspace?(:read, workspace)
end
+ render :workspaces
end
def show
end
@@ -155,10 +156,10 @@
)
end
def all_workspaces
CmsRestApi.get('/workspaces')['results'].map do |raw_data|
- Workspace.new(WorkspaceDataFromRestApi.new(raw_data))
+ Workspace.new(WorkspaceData.new(raw_data))
end
end
end
end