Are there alias/helper functions for objects stored in a polymorphic association?

后端 未结 0 1323
刺人心
刺人心 2020-12-23 00:54

I have the following class:

class CartItem < ApplicationRecord
  belongs_to :inventory_item, polymorphic: true
end

Where an inventory item

相关标签:
回答
  • 消灭零回复
提交回复
热议问题