module Rails::Generators
def self.load_generators_from_railties! #:nodoc:
Allow generators to be loaded from custom paths.
def self.load_generators_from_railties! #:nodoc: return if defined?(@generators_from_railties) || Rails.application.nil? @generators_from_railties = true Rails.application.load_generators end