This project is archived and is in readonly mode.
Convert csrf_meta_tags to use the tag helper
-
robinjam
The tap-and-join thing seems needlessly complicated. Something like this should work:
[tag('meta', {:name => 'csrf-param', :content => request_forgery_protection_token}), tag('meta', {:name => 'csrf-token', :content => form_authenticity_token})].join("\n").html_safe
Aside from that, this is a good fix. Have you tried submitting a pull request?
