Skip to content

Commit bc0de0d

Browse files
author
Reegan Viljoen
committed
Merge branch 'main' into rv-add-strict-helpers
1 parent b6f8d95 commit bc0de0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ nav_order: 5
1414

1515
*Reegan Viljoen*
1616

17-
* Make `use_helpers` a default method for all components
17+
* Include ViewComponent::UseHelpers by default.
1818

1919
*Reegan Viljoen*
2020

docs/guide/helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ end
5555

5656
By default, ViewComponents don't have access to helper methods defined externally. The `use_helpers` method allows external helpers to be called from the component.
5757

58-
`use_helpers` defines the helper on the component and is similar in use to using `delegate` on helpers.
58+
`use_helpers` defines the helper on the component, similar to `delegate`:
5959

6060
```ruby
6161
class UseHelpersComponent < ViewComponent::Base

0 commit comments

Comments
 (0)