diff options
author | Daniel Lopes <danielvlopes@gmail.com> | 2012-06-07 15:43:13 -0300 |
---|---|---|
committer | Daniel Lopes <danielvlopes@gmail.com> | 2012-06-07 15:43:13 -0300 |
commit | 5c17aa510f155ff0833422c3342d14d6044153d9 (patch) | |
tree | df651f28eecd8744cc1b97809520e19803fa678f /actionpack | |
parent | faf27445d0f3bccdde6624ac0c7e156fdb263e5b (diff) | |
download | rails-5c17aa510f155ff0833422c3342d14d6044153d9.tar.gz rails-5c17aa510f155ff0833422c3342d14d6044153d9.tar.bz2 rails-5c17aa510f155ff0833422c3342d14d6044153d9.zip |
on CSRF whitelisting the argument for :if must be a symbol
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 |
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 # |