mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Show RequestForgeryProtection
methods in api doc [ci skip]
Several methods of `RequestForgeryProtection` are not showed in the api doc even though `:doc:` is specified. (e.g. `form_authenticity_param`) http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html These methods are listed in the doc of v4.1. http://api.rubyonrails.org/v4.1/classes/ActionController/RequestForgeryProtection.html This is due to the influence of `:nodoc:` added in #18102, methods after `CROSS_ORIGIN_JAVASCRIPT_WARNING` not showed from the doc. Therefore, in order to show the method like originally, added `startdoc` after `CROSS_ORIGIN_JAVASCRIPT_WARNING`.
This commit is contained in:
parent
9ec6736205
commit
ab293293c3
1 changed files with 1 additions and 0 deletions
|
@ -248,6 +248,7 @@ module ActionController #:nodoc:
|
|||
"If you know what you're doing, go ahead and disable forgery " \
|
||||
"protection on this action to permit cross-origin JavaScript embedding."
|
||||
private_constant :CROSS_ORIGIN_JAVASCRIPT_WARNING
|
||||
# :startdoc:
|
||||
|
||||
# If `verify_authenticity_token` was run (indicating that we have
|
||||
# forgery protection enabled for this request) then also verify that
|
||||
|
|
Loading…
Reference in a new issue