Update the generated controller to not include the deprecated :secret option to protect_from_forgery

This commit is contained in:
Michael Koziarski 2008-11-21 11:08:39 +01:00
parent 9fdb15e60f
commit c4a0143854
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +5,7 @@ class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
# Uncomment the :secret if you're not using the cookie session store
protect_from_forgery # :secret => '<%= app_secret %>'
protect_from_forgery
# See ActionController::Base for details
# Uncomment this to filter the contents of submitted sensitive data parameters