Skip to content

Commit

Permalink
Fix preview_paths in docs (#2127)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierav authored Oct 8, 2024
1 parent c1a34e5 commit e2af6fd
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 @@ -10,6 +10,10 @@ nav_order: 5

## main

* 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 @@ -152,7 +152,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 e2af6fd

Please sign in to comment.