Class: Rails::AppUpdater
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.app_generator ⇒ Object
13 14 15 16 17 18 19 |
# File 'railties/lib/rails/app_updater.rb', line 13 def app_generator @app_generator ||= begin gen = Rails::Generators::AppGenerator.new ["rails"], , destination_root: Rails.root File.exist?(Rails.root.join("config", "application.rb")) ? gen.send(:app_const) : gen.send(:valid_const?) gen end end |
.invoke_from_app_generator(method) ⇒ Object
9 10 11 |
# File 'railties/lib/rails/app_updater.rb', line 9 def invoke_from_app_generator(method) app_generator.send(method) end |