Skip to content

stack level too deep when using model.reload #61

@alexwebgr

Description

@alexwebgr

This is definitely a true gem came in with hopes to solve all my db related performance issues but unfortunately i started getting an annoying error first in our test suites but also in the application code as well :(
i think it happens when .reload is used

expect(inventory.reload.status.value).to eq "accepted"

stack level too deep

i have set

class ApplicationRecord < ActiveRecord::Base
  JitPreloader.globally_enabled = false

  ...
end

but it still fails

i am only using in the controller that has nothing to do with that test

any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions