aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/request_forgery_protection.rb
diff options
context:
space:
mode:
authorAvnerCohen <israbirding@gmail.com>2012-10-27 22:05:27 +0200
committerAvnerCohen <israbirding@gmail.com>2012-10-27 22:05:27 +0200
commit62f273b6501db72e3c902d947e6828dcab9c004a (patch)
tree6e49d8b5219a94844b19c3809ae64783fef16f6a /actionpack/lib/action_controller/metal/request_forgery_protection.rb
parentcc81af2fe438fd3e2c8f95dae8f757de0bab1b53 (diff)
downloadrails-62f273b6501db72e3c902d947e6828dcab9c004a.tar.gz
rails-62f273b6501db72e3c902d947e6828dcab9c004a.tar.bz2
rails-62f273b6501db72e3c902d947e6828dcab9c004a.zip
Multiple changes to 1,9 hash syntax
Diffstat (limited to 'actionpack/lib/action_controller/metal/request_forgery_protection.rb')
-rw-r--r--actionpack/lib/action_controller/metal/request_forgery_protection.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
index 17d4a793ac..a50f0ca8c1 100644
--- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb
+++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -19,7 +19,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
#
@@ -62,7 +62,7 @@ module ActionController #:nodoc:
# Turn on request forgery protection. Bear in mind that only non-GET, HTML/JavaScript requests are checked.
#
# class FooController < ApplicationController
- # protect_from_forgery :except => :index
+ # protect_from_forgery except: :index
#
# You can disable csrf protection on controller-by-controller basis:
#
@@ -70,7 +70,7 @@ module ActionController #:nodoc:
#
# It can also be disabled for specific controller actions:
#
- # skip_before_filter :verify_authenticity_token, :except => [:create]
+ # skip_before_filter :verify_authenticity_token, except: [:create]
#
# Valid Options:
#