README.md in lite-component-1.0.10 vs README.md in lite-component-1.0.11
- old
+ new
@@ -158,9 +158,10 @@
```
### Locals
All components include access to partial locals via the `locals` or `l` methods.
+You can dump locals to hash via the `to_h` and `to_hash` methods.
*Note: Objects will be automatically added to locals when rendering collections.*
```erb
<%= component("alert", locals: { object: @user }) %>
```