aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lopes <danielvlopes@gmail.com>2012-06-07 15:43:13 -0300
committerDaniel Lopes <danielvlopes@gmail.com>2012-06-07 15:43:13 -0300
commit5c17aa510f155ff0833422c3342d14d6044153d9 (patch)
treedf651f28eecd8744cc1b97809520e19803fa678f
parentfaf27445d0f3bccdde6624ac0c7e156fdb263e5b (diff)
downloadrails-5c17aa510f155ff0833422c3342d14d6044153d9.tar.gz
rails-5c17aa510f155ff0833422c3342d14d6044153d9.tar.bz2
rails-5c17aa510f155ff0833422c3342d14d6044153d9.zip
on CSRF whitelisting the argument for :if must be a symbol
-rw-r--r--actionpack/lib/action_controller/metal/request_forgery_protection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
index c99fed9212..736f70af4c 100644
--- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb
+++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -16,7 +16,7 @@ module ActionController #:nodoc:
#
# class ApplicationController < ActionController::Base
# protect_from_forgery
- # skip_before_filter :verify_authenticity_token, :if => json_request?
+ # skip_before_filter :verify_authenticity_token, :if => :json_request?
#
# protected
#