AaronLasseigne/active_interaction

Is it possible to send a polymorphic object to an interaction?

philippemoro opened this issue · 1 comments

Title says it all, I'm creating an interaction called CreateEvent, event can belong to either a Customer or to a Company.

Is it possible to create an interaction with an object argument that accepts two different classes as param?

They would have to have a common ancestor or interface. That would allow you to use object or interface respectively.