Skip to content

Commit

Permalink
TTPLAT-491 fix association between funding source and assets, use ass…
Browse files Browse the repository at this point in the history
…et_base_class_name
  • Loading branch information
mathmerized committed Nov 5, 2018
1 parent 2fb3a63 commit 2fcb2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/funding_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fcb2ab

Please sign in to comment.