RailsCasts Pro episodes are now free!

Learn more or hide this

Weddingful's Profile

GitHub User: Weddingful

Comments by

Avatar

The way I approached eager loading with polymorphic associations is to define the relationship as non-polymorphic for the types of polymorphic you need to eager load. Only works for cases where your eager loading is of the same type.