class PrependProtectForgeryBaseController

Attributes

called_callbacks[RW]

Public Instance Methods

index() click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 109
def index
  render inline: "OK"
end

Private Instance Methods

add_called_callback(name) click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 115
def add_called_callback(name)
  @called_callbacks ||= []
  @called_callbacks << name
end
custom_action() click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 120
def custom_action
  add_called_callback("custom_action")
end
verify_authenticity_token() click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 124
def verify_authenticity_token
  add_called_callback("verify_authenticity_token")
end