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

后端 未结 0 1113
面向向阳花
面向向阳花 2020-12-23 00:38

I have the following class:

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

Where an inventory item

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