aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Czarnecki <dczarnecki@agoragames.com>2013-02-26 10:49:47 -0500
committerDavid Czarnecki <dczarnecki@agoragames.com>2013-02-26 10:49:47 -0500
commit3f9baeb2ec08138a0da09870ae60fd6b8165c07f (patch)
treee2033a9c62c73ebbf939ce443043b58baf6e13df /railties
parentb1dee8c2535b2bca6ebe69d18c24d29f9ba19470 (diff)
downloadrails-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.rb2
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}" %>]