Commit c1eff92
Kai Wood
Add ability to render custom attributes from the controller
Currently, all custom attributes are sliced from options
when using the controller renderer, instead of forwarding
it to the view helper, making it impossible to set a custom
class name or id. This patch changes the behaviour to act
more like render_component.1 parent 0573ae2 commit c1eff92
File tree
3 files changed
+5
-2
lines changed- lib/react/rails
- test
- dummy/app/controllers
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
0 commit comments