-
Notifications
You must be signed in to change notification settings - Fork 106
Description
I had an issue where in progress form values were lost on validation failures for existing records. It was strange because it worked as expected and persisted in progress values for new records but not existing ones. I spent quite a while debugging this gem and banging my head until I realized it was an unrelated gem ar_lazy_preload interfering with the loading of associations. This line in particular was the culprit ArLazyPreload.config.auto_preload = true.
There is probably a way to make it play nice but I'm just disabling the ar_lazy_preload for administrate for now. This is not an issue with the administrate-field-nested_has_many gem but I did want to make note of it here and ask if a documentation PR would be helpful to help others avoid the pitfall? I have no idea how popular the ar_lazy_preload gem is but I've found it very helpful in the past.