Skip to content

Instantly share code, notes, and snippets.

@spidergears
Created August 31, 2013 09:39
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 spidergears/6397223 to your computer and use it in GitHub Desktop.
Save spidergears/6397223 to your computer and use it in GitHub Desktop.
class Exception
def initialize(controller)
@controller = controller
end
def handle_unverified_request
raise ActionController::InvalidAuthenticityToken
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment