Skip to content

Commit

Permalink
Merge branch 'main' into rv-add-strict-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
reeganviljoen committed Feb 12, 2024
1 parent b6f8d95 commit bc0de0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nav_order: 5

*Reegan Viljoen*

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

*Reegan Viljoen*

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end

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.

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

```ruby
class UseHelpersComponent < ViewComponent::Base
Expand Down

0 comments on commit bc0de0d

Please sign in to comment.