Skip to content

Commit

Permalink
Fix preview_paths in docs (ViewComponent#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierav authored and boardfish committed Oct 11, 2024
1 parent 0470809 commit b7a6ad0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ nav_order: 5

*Simon Fish*

* Fix `preview_paths` in docs.

*Javier Aranda*

## 3.17.0

* Use struct instead openstruct in lib code.
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Defaults to `ViewComponentsController`.
### `.preview_paths`

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

### `.preview_route`

Expand Down
2 changes: 1 addition & 1 deletion lib/view_component/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def defaults
# @!attribute preview_paths
# @return [Array<String>]
# The locations in which component previews will be looked up.
# Defaults to `['test/component/previews']` relative to your Rails root.
# Defaults to `['test/components/previews']` relative to your Rails root.

# @!attribute test_controller
# @return [String]
Expand Down

0 comments on commit b7a6ad0

Please sign in to comment.