class Rails::Generators::Base

def self.namespace(name = nil)

is removed.
same as Thor default except that the Generator at the end of the class
Convenience method to get the namespace from the class name. It's the
def self.namespace(name = nil)
  return super if name
  @namespace ||= super.delete_suffix("_generator").sub(/:generators:/, ":")
end