-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
For a model such as
class Icon
include MotionModel::Model
include MotionModel::ArrayModelAdapter
columns(
name: :string
)
belongs_to :record, polymorphic: true
endThe following raises a classify exception:
widget = Widget.create
gadget = Gadget.create
icon = Icon.create
icon.record
icon.record = widget
icon.record
icon.record = gadgetbecause belongs_to_relation assumes you can always classify the column, but the column specifically raises an exception when trying to classify a polymorphic column.
Metadata
Metadata
Assignees
Labels
No labels