I found a behaviour that seems like a bug and couldn’t find discussion about it. In a rails app (with or without bootsnap) with the modules : A::B and A::C::E, in rails console, if I use A::C::B (does not exist) it will fallback to A::B once, every next use of A::C::B will raise an error.
edit : I could not repro in rails 6
repro : GitHub - Mziserman/repro,
in rails console :
irb(main):001:0> User::Smth::UpdateTransaction.new.call => User::UpdateTransaction irb(main):002:0> User::Smth::UpdateTransaction.new.call Traceback (most recent call last): 1: from (irb):2 NameError (uninitialized constant User::Smth::UpdateTransaction)