Skip to content

Instantly share code, notes, and snippets.

@forced-request
Created September 9, 2014 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forced-request/653acca0adb0e61554f6 to your computer and use it in GitHub Desktop.
Save forced-request/653acca0adb0e61554f6 to your computer and use it in GitHub Desktop.
verify_authenticity_token
def verify_authenticity_token
unless verified_request?
logger.warn "WARNING: Can't verify CSRF token authenticity" if logger
handle_unverified_request
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment