Skip to content

ar_lazy_preload gem breaks functionality #80

@HuntBurdick

Description

@HuntBurdick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions