Permalink
Browse files

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

Use less hyperbole in the language re: allowed parameters
  • Loading branch information...
2 parents 3d9cfe0 + 3f9baeb commit 62b783e5319f715794b8976f424bfacb85da9c1f @fxn fxn committed Feb 26, 2013
View
2 railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb
@@ -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}" %>]

0 comments on commit 62b783e

Please sign in to comment.