Browse Source

Skip forgery protection for now

pull/44/head
baarkerlounger 4 years ago
parent
commit
ec1fd28f22
  1. 2
      app/controllers/case_logs_controller.rb
  2. 2
      spec/requests/case_log_controller_spec.rb

2
app/controllers/case_logs_controller.rb

@ -1,4 +1,6 @@
class CaseLogsController < ApplicationController class CaseLogsController < ApplicationController
skip_before_action :verify_authenticity_token
def index def index
@submitted_case_logs = CaseLog.where(status: 1) @submitted_case_logs = CaseLog.where(status: 1)
@in_progress_case_logs = CaseLog.where(status: 0) @in_progress_case_logs = CaseLog.where(status: 0)

2
spec/requests/case_log_controller_spec.rb

@ -5,7 +5,7 @@ RSpec.describe CaseLogsController, type: :request do
let(:headers) do let(:headers) do
{ {
"Content-Type" => "application/json", "Content-Type" => "application/json",
"ACCEPT" => "application/json" "Accept" => "application/json"
} }
end end

Loading…
Cancel
Save