Skip to content

Commit e2af6fd

Browse files
authored
Fix preview_paths in docs (#2127)
1 parent c1a34e5 commit e2af6fd

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ nav_order: 5
1010

1111
## main
1212

13+
* Fix `preview_paths` in docs.
14+
15+
*Javier Aranda*
16+
1317
## 3.17.0
1418

1519
* Use struct instead openstruct in lib code.

docs/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Defaults to `ViewComponentsController`.
236236
### `.preview_paths`
237237

238238
The locations in which component previews will be looked up.
239-
Defaults to `['test/component/previews']` relative to your Rails root.
239+
Defaults to `['test/components/previews']` relative to your Rails root.
240240

241241
### `.preview_route`
242242

lib/view_component/config.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def defaults
152152
# @!attribute preview_paths
153153
# @return [Array<String>]
154154
# The locations in which component previews will be looked up.
155-
# Defaults to `['test/component/previews']` relative to your Rails root.
155+
# Defaults to `['test/components/previews']` relative to your Rails root.
156156

157157
# @!attribute test_controller
158158
# @return [String]

0 commit comments

Comments
 (0)