Skip to content
Discussion options

You must be logged in to vote

The polymorphic feature for Avram requires that you define each column separately. It doesn't work like using STI where you have a type and id columns because in ruby you can do "Post".constantize.find(commentable_id), but in Crystal there's not a way to "constantize", so you have to know the type at compiletime.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zw963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants