Skip Controller CSRF checks to fix cuke steps

Various cuke steps make direct browser AJAX requests - to bypass
certain UI actions. This patch ensures these requests are handled
correctly.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/6827/head
Alex Coles 9 years ago
parent 5cb98fd4f5
commit 62ac37ef28
  1. 2
      app/controllers/rb_application_controller.rb

@ -39,6 +39,8 @@ class RbApplicationController < ApplicationController
before_filter :load_sprint_and_project, :check_if_plugin_is_configured, :authorize
skip_before_action :verify_authenticity_token, if: -> { Rails.env.test? }
private
# Loads the project to be used by the authorize filter to determine if

Loading…
Cancel
Save