ActionController::RequestForgeryProtection.module_eval do
alias :vat :verify_authenticity_token
def verify_authenticity_token(*args)
vat(*args) rescue redirect_to logout_path
end
end
Various things that I read and meet everyday.
ActionController::RequestForgeryProtection.module_eval do
alias :vat :verify_authenticity_token
def verify_authenticity_token(*args)
vat(*args) rescue redirect_to logout_path
end
end
0 件のコメント:
コメントを投稿