123456789_123456789_123456789_123456789_123456789_

Class: Rails::Engine::Updater

Relationships & Source Files
Inherits: Object
Defined in: railties/lib/rails/engine/updater.rb

Class Method Summary

Class Method Details

.generator

[ GitHub ]

  
# 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)

[ GitHub ]

  
# File 'railties/lib/rails/engine/updater.rb', line 15

def run(action)
  generator.send(action)
end