diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-16 22:47:49 +0430 |
---|---|---|
committer | Rizwan Reza <rizwanreza@gmail.com> | 2010-06-16 22:47:49 +0430 |
commit | 5a0bc2c7bc993e8f987a99f510b7d1d2cc7cf8ba (patch) | |
tree | f340714b1c19fea9a0745e6eb373d1147c0a27e2 /actionpack/lib/action_view/helpers/csrf_helper.rb | |
parent | fde95048475c1ffc89978650411b2e9034ff6a35 (diff) | |
download | rails-5a0bc2c7bc993e8f987a99f510b7d1d2cc7cf8ba.tar.gz rails-5a0bc2c7bc993e8f987a99f510b7d1d2cc7cf8ba.tar.bz2 rails-5a0bc2c7bc993e8f987a99f510b7d1d2cc7cf8ba.zip |
Adds title and description where needed.
Diffstat (limited to 'actionpack/lib/action_view/helpers/csrf_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/csrf_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/csrf_helper.rb b/actionpack/lib/action_view/helpers/csrf_helper.rb index 41c6b67f91..3d03f6aac6 100644 --- a/actionpack/lib/action_view/helpers/csrf_helper.rb +++ b/actionpack/lib/action_view/helpers/csrf_helper.rb @@ -1,7 +1,9 @@ module ActionView + # = Action View CSRF Helper module Helpers module CsrfHelper - # Returns a meta tag with the request forgery protection token for forms to use. Put this in your head. + # Returns a meta tag with the cross-site request forgery protection token + # for forms to use. Place this in your head. def csrf_meta_tag if protect_against_forgery? %(<meta name="csrf-param" content="#{Rack::Utils.escape_html(request_forgery_protection_token)}"/>\n<meta name="csrf-token" content="#{Rack::Utils.escape_html(form_authenticity_token)}"/>).html_safe |