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
Prod
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.