-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip replace existing content block with new one
- Loading branch information
Showing
3 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
...anager/app/controllers/content_block_manager/content_block/editions/preview_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
class ContentBlockManager::ContentBlock::Editions::PreviewController < ContentBlockManager::BaseController | ||
def show | ||
host_content_id = params[:host_content_id] | ||
@preview_content = ContentBlockManager::GetPreviewContent.new(content_id: host_content_id).preview_content | ||
content_block_edition = ContentBlockManager::ContentBlock::Edition.find(params[:id]) | ||
@preview_content = ContentBlockManager::GetPreviewContent.new(content_id: host_content_id, content_block_edition:).preview_content | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters