class Rails::AppUpdater
def app_generator
def app_generator @app_generator ||= begin gen = Rails::Generators::AppGenerator.new ["rails"], generator_options, destination_root: Rails.root gen.send(:valid_const?) unless File.exist?(Rails.root.join("config", "application.rb")) gen end end