vendredi 8 avril 2016

Fixture for table with column name that is an ActiveRecord method

I have fixtures with relation called group.
This fails to get set during tests.

Though creating records through code is fine.

The only thing I can think of, is fixture loading fails when the name of an association is also the name of an ActiveRecord method (group in this case).

Is this a known bug? Is there a workaround other than renaming the association?

Aucun commentaire:

Enregistrer un commentaire