Sha256: ad5ac545c98f03bd8b593bc7aeda6521020b030b0f6e36dd161975c0610d3ec2
Contents?: true
Size: 342 Bytes
Versions: 85
Compression:
Stored size: 342 Bytes
Contents
# TODO move to DeviseSessions controller and figure out how to set # headers after a redirect. Or even, if this is the right approach module CsrfExtensions extend ActiveSupport::Concern included do private def add_new_csrf_token response.headers['X-CSRF-Token'] = form_authenticity_token if request.xhr? end end end
Version data entries
85 entries across 85 versions & 1 rubygems