You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for maintaining this library 馃槂
We only encountered it now, after having a composite index in one of our MySQL tables and threw it in the mix. Surprisingly this leads to multiple errors in unrelated classes:
The call to source_reflection.klass will raise the ArgumentError: Polymorphic association does not support to compute class
when source_reflection.klass is polymorphic.
For our code base a monkey-patch to change the condition to: if !source_reflection.polymorphic? && source_reflection.klass.composite?
would suffice, but I doubt this would be a good solution for this gem.
The text was updated successfully, but these errors were encountered:
Thank you for maintaining this library 馃槂
We only encountered it now, after having a composite index in one of our MySQL tables and threw it in the mix. Surprisingly this leads to multiple errors in unrelated classes:
The call to
source_reflection.klass
will raise the ArgumentError:Polymorphic association does not support to compute class
when
source_reflection.klass
is polymorphic.This change was discussed here: rails/rails#31877
and implemented here: rails/rails@fb86ecd
For our code base a monkey-patch to change the condition to:
if !source_reflection.polymorphic? && source_reflection.klass.composite?
would suffice, but I doubt this would be a good solution for this gem.
The text was updated successfully, but these errors were encountered: