Closed adamruzicka closed 2 years ago
Could we get this in?
Hello, anybody could take a look on the patch? See https://github.com/svenfuchs/safemode/issues/41 for more discussion about the pace of reviews, thanks!
@ezr-ondrej have you tested this? I suppose we need that for Rails 6.1+ support (with Zeitwerk enabled)
Zeitwerk handles singleton and "regular" classes differently. For this to work, it needs to be able to detect if a class is a singleton or not. This was not exposed for jails, leading to error like NoMethodError: undefined method `singleton_class?' for #.