Open SofianO opened 9 years ago
What model are you trying to create? I just successfully created a record with a polymorphic association as follows:
Tradesman::CreateSchemePrice.go({priceable: package_variant,...)
This will work if package_variant is an active record but not a Horza Entity.
At the moment, when trying to pass a polymorphic association for a create
This raises a NoMethodError: undefined method `primary_key' for Horza::Entities::SingleWithActiveModel:Class