Adding belongs to relationship to Ruby Gem Mailboxer

前端 未结 4 1997
情话喂你
情话喂你 2021-01-03 10:08

I am building an e-com application and would like to implement something like a messaging system. In the application, all conversation will be related to either a Prod

4条回答
  •  梦谈多话
    2021-01-03 10:11

    The gem automatically take care of this for you, as they have built a solution that any model in your own domain logic can act as a messagble object.

    Simply declaring

    acts_as_messagable
    

    In your Order or Product model will accomplish what you are looking for.

提交回复
热议问题