Skip to content

Commit

Permalink
Show what arguments the csrf_tag method allows in the route_csrf plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jun 11, 2018
1 parent 1f20e60 commit c73ac0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/roda/plugins/route_csrf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ module RodaPlugins
# that should be valid for the form submission. The argument should
# either be nil or a string representing a relative path, absolute
# path, or full URL.
# csrf_tag :: An HTML hidden input tag string containing the CSRF token, suitable
# for placing in an HTML form. Takes the same arguments as csrf_token.
# csrf_tag(path=nil, method='POST') :: An HTML hidden input tag string containing the CSRF token, suitable
# for placing in an HTML form. Takes the same arguments as csrf_token.
# csrf_token(path=nil, method='POST') :: The value of the csrf token, in case it needs to be accessed
# directly. It is recommended to call this method with a
# path, which will create a request-specific token. Calling
Expand Down

0 comments on commit c73ac0d

Please sign in to comment.