From 9f6ea912240706097825e665d3d3adb66b4a7fc0 Mon Sep 17 00:00:00 2001 From: Luis Castro Date: Sat, 20 Jul 2019 15:10:32 +0200 Subject: [PATCH] fix(direct_debit_detail): use class_name string value --- app/models/direct_debit_detail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/direct_debit_detail.rb b/app/models/direct_debit_detail.rb index d4dbfdcb..85b83947 100644 --- a/app/models/direct_debit_detail.rb +++ b/app/models/direct_debit_detail.rb @@ -4,5 +4,5 @@ class DirectDebitDetail < ApplicationRecord has_many :donations has_many :charges - belongs_to :holder, class_name: Supporter + belongs_to :holder, class_name: Supporter.class_name end