-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I'm not sure if this is an issue or if I'm misreading the README, but from "well isolated helper methods" I expected that helpers defined with partial.helpers would only be available to the partial that defines them. Instead, it appears that helpers defined in this way are available to all partials.
To reproduce:
- Clone https://github.com/grncdr/nice_partials_issue
- Checkout the
issue-102branch - bundle && rails server
- Open localhost:3000
- Observe the empty red box
- Uncomment this line: https://github.com/grncdr/nice_partials_issue/blob/issue-101/app/views/pages/index.html.erb#L2
- Refresh*
- Observe that the helper defined in
test_partialis available onother_partial.
* - you may need to restart the server to observe the changes, see #101
Metadata
Metadata
Assignees
Labels
No labels