Skip to content

Commit

Permalink
Use ContentBlockManager::PreviewContent
Browse files Browse the repository at this point in the history
We also remove the `GetPreviewContent` service
  • Loading branch information
pezholio committed Jan 10, 2025
1 parent e730288 commit 88325b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 271 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class ContentBlockManager::ContentBlock::Editions::HostContentController < Conte
def preview
host_content_id = params[:host_content_id]
@content_block_edition = ContentBlockManager::ContentBlock::Edition.find(params[:id])
@preview_content = ContentBlockManager::GetPreviewContent.for_content_id(
@preview_content = ContentBlockManager::PreviewContent.for_content_id(
content_id: host_content_id,
content_block_edition: @content_block_edition,
base_path: params[:base_path],
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 88325b5

Please sign in to comment.