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 %>
5151 @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
5252 end
5353
54- # Never trust parameters from the scary internet, only allow the white list through.
54+ # Only allow a list of trusted parameters through.
5555 def <%= "#{ singular_table_name } _params" %>
5656 <%- if attributes_names.empty? -%>
5757 params . fetch ( <%= ":#{ singular_table_name } " %>, {})
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def set_<%= singular_table_name %>
7272 @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
7373 end
7474
75- # Never trust parameters from the scary internet, only allow the white list through.
75+ # Only allow a list of trusted parameters through.
7676 def <%= "#{ singular_table_name } _params" %>
7777 <%- if attributes_names.empty? -%>
7878 params . fetch ( <%= ":#{ singular_table_name } " %>, {})
You can’t perform that action at this time.
0 commit comments