Merge pull request #37390 from eileencodes/change-comment-in-controller-generator
Update comment in controller generators
This commit is contained in:
commit
921b55d300
@ -49,7 +49,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
||||
@<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
|
||||
end
|
||||
|
||||
# Only allow a trusted parameter "white list" through.
|
||||
# Only allow a list of trusted parameters through.
|
||||
def <%= "#{singular_table_name}_params" %>
|
||||
<%- if attributes_names.empty? -%>
|
||||
params.fetch(:<%= singular_table_name %>, {})
|
||||
|
@ -56,7 +56,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
||||
@<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
|
||||
end
|
||||
|
||||
# Only allow a trusted parameter "white list" through.
|
||||
# Only allow a list of trusted parameters through.
|
||||
def <%= "#{singular_table_name}_params" %>
|
||||
<%- if attributes_names.empty? -%>
|
||||
params.fetch(:<%= singular_table_name %>, {})
|
||||
|
Loading…
Reference in New Issue
Block a user