diff options
author | David Czarnecki <dczarnecki@agoragames.com> | 2013-02-26 10:49:47 -0500 |
---|---|---|
committer | David Czarnecki <dczarnecki@agoragames.com> | 2013-02-26 10:49:47 -0500 |
commit | 3f9baeb2ec08138a0da09870ae60fd6b8165c07f (patch) | |
tree | e2033a9c62c73ebbf939ce443043b58baf6e13df /railties | |
parent | b1dee8c2535b2bca6ebe69d18c24d29f9ba19470 (diff) | |
download | rails-3f9baeb2ec08138a0da09870ae60fd6b8165c07f.tar.gz rails-3f9baeb2ec08138a0da09870ae60fd6b8165c07f.tar.bz2 rails-3f9baeb2ec08138a0da09870ae60fd6b8165c07f.zip |
Use less hyperbole in the language re: allowed parameters
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb index 72281a2fef..73e89086a5 100644 --- a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb @@ -56,7 +56,7 @@ class <%= controller_class_name %>Controller < ApplicationController @<%= 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}" %>] |