diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-09-24 18:11:59 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-09-24 18:11:59 +0000 |
commit | 605aadb3cdba9f469e88c39c0cad7448d59a9f0c (patch) | |
tree | b7558f2616b37ae46836486ba4a5cae838c9c239 /railties | |
parent | fc042435a6f571684314d60e9605e3331b7435f9 (diff) | |
download | rails-605aadb3cdba9f469e88c39c0cad7448d59a9f0c.tar.gz rails-605aadb3cdba9f469e88c39c0cad7448d59a9f0c.tar.bz2 rails-605aadb3cdba9f469e88c39c0cad7448d59a9f0c.zip |
protect new rails apps from csrf by default.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/helpers/application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/helpers/application.rb b/railties/helpers/application.rb index f43525bf80..0444cce325 100644 --- a/railties/helpers/application.rb +++ b/railties/helpers/application.rb @@ -3,4 +3,5 @@ class ApplicationController < ActionController::Base helper :all # include all helpers, all the time + protect_from_forgery end |