Sha256: 311b23d2bcf127b76131112e821e89e26214e24cd51add244cbab806872e9eea
Contents?: true
Size: 533 Bytes
Versions: 46
Compression:
Stored size: 533 Bytes
Contents
module ThinkFeelDoEngine module Concerns # Rescues exception when authenticity token has expired module InvalidAuthToken extend ActiveSupport::Concern included do rescue_from ActionController::InvalidAuthenticityToken, with: :invalid_auth_token_redirect end private def invalid_auth_token_redirect redirect_to "/", alert: "Your authenticity token expired. "\ "Please try again." end end end end
Version data entries
46 entries across 46 versions & 1 rubygems