File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ config.view_component.default_preview_layout = "component_preview"
115115
116116## Preview paths
117117
118- Preview classes live in ` test/components/previews ` , which can be configured using the ` preview_paths ` option:
118+ Preview classes live in ` test/components/previews ` , which can be configured using the ` previews.paths ` option:
119119
120120``` ruby
121121# config/application.rb
@@ -210,9 +210,9 @@ config.view_component.previews.enabled = false
210210
211211## Use with RSpec
212212
213- When using previews with RSpec, replace ` test/components ` with ` spec/components ` and update ` preview_paths ` :
213+ When using previews with RSpec, replace ` test/components ` with ` spec/components ` and update ` previews.paths ` :
214214
215215``` ruby
216216# config/application.rb
217- config.view_component.preview_paths << " #{ Rails .root} /spec/components/previews"
217+ config.view_component.previews.paths << " #{ Rails .root} /spec/components/previews"
218218```
You can’t perform that action at this time.
0 commit comments