From 38689a59d59a5080cfa3a4d1e4629e51656a031c Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Wed, 8 Nov 2017 08:58:38 +0800 Subject: [PATCH] Inherit from the application controller --- app/controllers/discourse_donations/checkout_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/discourse_donations/checkout_controller.rb b/app/controllers/discourse_donations/checkout_controller.rb index 48435aa..192e239 100644 --- a/app/controllers/discourse_donations/checkout_controller.rb +++ b/app/controllers/discourse_donations/checkout_controller.rb @@ -1,11 +1,7 @@ require_dependency 'discourse' module DiscourseDonations - class CheckoutController < ActionController::Base - include CurrentUser - - protect_from_forgery prepend: true - protect_from_forgery with: :exception + class CheckoutController < ApplicationController skip_before_action :verify_authenticity_token, only: [:create]