Module: ActionController::RequestForgeryProtection

Defined in:
lib/stratagem/instrumentation/request_forgery_protection.rb

Instance Method Summary collapse

Instance Method Details

#authenticity_checkedObject



7
8
9
# File 'lib/stratagem/instrumentation/request_forgery_protection.rb', line 7

def authenticity_checked
  @authenticity_checked = true
end

#authenticity_checked?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/stratagem/instrumentation/request_forgery_protection.rb', line 3

def authenticity_checked?
  @authenticity_checked || false
end

#verify_authenticity_tokenObject



11
12
13
14
# File 'lib/stratagem/instrumentation/request_forgery_protection.rb', line 11

def verify_authenticity_token
  authenticity_checked
  true
end