123456789_123456789_123456789_123456789_123456789_

Class: ActionController::RequestForgeryProtection::SessionStore

Relationships & Source Files
Inherits: Object
Defined in: actionpack/lib/action_controller/metal/request_forgery_protection.rb

Instance Method Summary

Instance Method Details

#fetch(request)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 318

def fetch(request)
  request.session[:_csrf_token]
end

#reset(request)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 326

def reset(request)
  request.session.delete(:_csrf_token)
end

#store(request, csrf_token)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/request_forgery_protection.rb', line 322

def store(request, csrf_token)
  request.session[:_csrf_token] = csrf_token
end