Mercurial > zeropaste
diff app/views/layouts/application.html.erb @ 90:d100218b96c9
Disables csrf for pastes/show.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Tue, 06 Nov 2012 11:25:10 +0700 |
parents | 04164da6c12c |
children | 255f8f9455a0 |
line wrap: on
line diff
--- a/app/views/layouts/application.html.erb Tue Nov 06 11:16:47 2012 +0700 +++ b/app/views/layouts/application.html.erb Tue Nov 06 11:25:10 2012 +0700 @@ -5,7 +5,9 @@ <title><%= html_title %></title> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> - <%= csrf_meta_tags %> + <% unless @skip_csrf %> + <%= csrf_meta_tags %> + <% end %> </head> <body>