Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 15, 2024
1 parent 382bc69 commit d6e725d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/trade/ext/good.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Ext::Good

has_many :items, class_name: 'Trade::Item', as: :good
has_many :orders, through: :items, source: :trade
has_many :addresses, -> { distinct }, class_name: 'Factory::Address', through: :items
has_many :addresses, -> { distinct }, class_name: 'Ship::Address', through: :items

has_many :promote_goods, class_name: 'Trade::PromoteGood', as: :good
has_many :unavailable_promote_goods, ->(o) { unavailable.where(good_id: [o.id, nil]) }, class_name: 'Trade::PromoteGood', primary_key: :good_type, foreign_key: :good_type
Expand Down

0 comments on commit d6e725d

Please sign in to comment.