Hello!
In production (which eager load classes) I see this error:
uninitialized constant Administrate::Punditize::Pundit (NameError)
How to fix it?
Thanks!
Ah, that's interesting!
This is potentially related to us merging #971. Are you installing from master?
Yes, from master @nickcharlton
As a temp solution:
gem 'pundit', '~> 1.1.0'
We've also run into this (in Production only). Confirmed that adding the gem to the Gemfile works as a temp solution.
I've opened #1068 as a potential solution here.
/cc @pedantic-git
Sorry for this! I genuinely didn't think about eager loading in production. Nick's fix looks perfect to me.
No worries! I'd not considered it either. I'm going to merge the other, which'll close this.
I just encountered this issue... I suspect rails 6 and the new loader