My question is off the back of this
I have a gem which dynamically adds associations to several models. However in my rails application, the associations will work once, and then I get the undefined method for association come up.
On server initialisation Model.reflect_on_all_associations shows all the associations, but when I debug a rails action, it returns an empty array.