Skip to content

Commit c54ee6b

Browse files
authored
Merge pull request #2450 from lucasgeron/patch-1
fix outdated settings related to default layout preview
2 parents 360f57d + 4089342 commit c54ee6b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ nav_order: 6
1010

1111
## main
1212

13+
* Fix outdated reference to preview layout configuration in docs.
14+
15+
*Lucas Geron*
16+
1317
* Allow ruby-head CI job to fail without failing workflow.
1418

1519
*Hakan Ensari*

docs/guide/previews.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ To set a custom layout for individual previews and the previews index page, set:
110110
```ruby
111111
# config/application.rb
112112
# Set the default layout to app/views/layouts/component_preview.html.erb
113-
config.view_component.default_preview_layout = "component_preview"
113+
config.view_component.previews.default_layout = "component_preview"
114114
```
115115

116116
## Preview paths

0 commit comments

Comments
 (0)