Exception: Mack::Errors::InvalidAuthenticityToken

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mack/errors/errors.rb

Overview

Raised if a request (other than GET request) has an invalid authenticity token

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ InvalidAuthenticityToken

Takes the mismatched token



113
114
115
# File 'lib/mack/errors/errors.rb', line 113

def initialize(token)
  super("TOKEN: #{token.to_s} is an invalid request authenticity token.")
end