File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/generators/rails/templates Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def set_<%= singular_table_name %>
51
51
@<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
52
52
end
53
53
54
- # Never trust parameters from the scary internet, only allow the white list through.
54
+ # Only allow a list of trusted parameters through.
55
55
def <%= "#{ singular_table_name } _params" %>
56
56
<%- if attributes_names.empty? -%>
57
57
params . fetch ( <%= ":#{ singular_table_name } " %>, {})
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def set_<%= singular_table_name %>
72
72
@<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
73
73
end
74
74
75
- # Never trust parameters from the scary internet, only allow the white list through.
75
+ # Only allow a list of trusted parameters through.
76
76
def <%= "#{ singular_table_name } _params" %>
77
77
<%- if attributes_names.empty? -%>
78
78
params . fetch ( <%= ":#{ singular_table_name } " %>, {})
You can’t perform that action at this time.
0 commit comments