class Rails::Engine

def load_generators(app = self)

Check Rails::Railtie.generators for more info.
Load Rails generators and invoke the registered hooks.
def load_generators(app = self)
  require "rails/generators"
  run_generators_blocks(app)
  Rails::Generators.configure!(app.config.generators)
  self
end