Fix the example

上级 4dcfc1f1
......@@ -5,7 +5,7 @@
class ApplicationController < ActionController::Base
before_action :authenticate
protect_from_forgery unless: -> { @authenticated_by.oauth? }
protect_from_forgery prepend: true, unless: -> { @authenticated_by.oauth? }
private
def authenticate
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册