Commit a2cf56e
committed
Update comment in controller generator templates
In 2013 this comment was updated in
rails/rails@3f9baeb to say "Only allow
a trusted parameter "white list" through." but no one ever noticed that
it didn't update in an app that used jbuilder.
jbuilder uses the same generators as Rails and actually overrides them
when you do a scaffold generator with jbuilder installed. That means
that this comment had the old text since 2013. Oops.
In #33681 we also stopped using "whitelist" in Rails so I've updated
this text and the text in Rails to remove this reference. See
rails/rails#373901 parent 44bc207 commit a2cf56e
File tree
2 files changed
+2
-2
lines changed- lib/generators/rails/templates
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments