Remove unused CSRF data in js data view

pull/6827/head
Oliver Günther 9 years ago
parent e9d343b971
commit d3d27ea207
  1. 3
      app/views/rb_server_variables/show.js.erb

@ -37,9 +37,6 @@ See doc/COPYRIGHT.rdoc for more details.
RB.constants = { RB.constants = {
project_id: <%= @project.id %>, project_id: <%= @project.id %>,
sprint_id: <%= @sprint ? @sprint.id : "null" %>, sprint_id: <%= @sprint ? @sprint.id : "null" %>,
protect_against_forgery: <%= protect_against_forgery? ? "true" : "false" %>,
request_forgery_protection_token: '<%= request_forgery_protection_token %>',
form_authenticity_token: '<%= form_authenticity_token %>'
}; };
RB.i18n = { RB.i18n = {

Loading…
Cancel
Save