The first comment does not explain anything that the code doesnt and the...

The first comment does not explain anything that the code doesnt and the second is now irrelevant with the dedicated API mode
上级 c7f950ad
class ApplicationController < ActionController::<%= options[:api] ? "API" : "Base" %>
<%- unless options[:api] -%>
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
<%- end -%>
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册