Created
January 26, 2015 22:23
-
-
Save uptownhr/e2448a0fbe134381ffe1 to your computer and use it in GitHub Desktop.
debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_hidden_tag do |tag| | |
p "testing" | |
if defined?(::Rack::Csrf) && (form = tag.form) && (env = form.opts[:env]) && tag.attr[:method].to_s.upcase == 'POST' | |
{::Rack::Csrf.field=>::Rack::Csrf.token(env)} | |
end | |
p "testing" | |
PP.pp tag | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment