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!