From 2fcb2ab563620eea2369cc7dd521fe59f0dbc4de Mon Sep 17 00:00:00 2001 From: mathmerized Date: Mon, 5 Nov 2018 14:54:33 -0500 Subject: [PATCH] TTPLAT-491 fix association between funding source and assets, use asset_base_class_name --- app/models/funding_source.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/funding_source.rb b/app/models/funding_source.rb index 497568f2..ca2952f5 100644 --- a/app/models/funding_source.rb +++ b/app/models/funding_source.rb @@ -40,7 +40,7 @@ class FundingSource < ActiveRecord::Base has_many :grants, :as => :sourceable, :dependent => :destroy has_many :grant_purchases, :as => :sourceable, :dependent => :destroy - has_many :assets, :through => :grant_purchases + has_many :assets, :through => :grant_purchases, :class_name => Rails.application.config.asset_base_class_name #------------------------------------------------------------------------------ # Validations