Class: Rails::Engine::Updater
- Defined in:
- railties/lib/rails/engine/updater.rb
Class Method Summary collapse
Class Method Details
.generator ⇒ Object
10 11 12 13 |
# File 'railties/lib/rails/engine/updater.rb', line 10 def generator @generator ||= Rails::Generators::PluginGenerator.new ["plugin"], { engine: true }, { destination_root: ENGINE_ROOT } end |
.run(action) ⇒ Object
15 16 17 |
# File 'railties/lib/rails/engine/updater.rb', line 15 def run(action) generator.send(action) end |