Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9442 from czarneckid/adjust-generator-language

Use less hyperbole in the language re: allowed parameters
  • Loading branch information...
commit 62b783e5319f715794b8976f424bfacb85da9c1f 2 parents 3d9cfe0 + 3f9baeb
Xavier Noria fxn authored
2  railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb
View
@@ -56,7 +56,7 @@ def set_<%= singular_table_name %>
@<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
end
- # Never trust parameters from the scary internet, only allow the white list through.
+ # Only allow a trusted parameter "white list" through.
def <%= "#{singular_table_name}_params" %>
<%- if attributes_names.empty? -%>
params[<%= ":#{singular_table_name}" %>]
Please sign in to comment.
Something went wrong with that request. Please try again.