Skip to Content Skip to Search

class Rails::Engine::Updater

Public class methods

Source code 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
Source code GitHub
# File railties/lib/rails/engine/updater.rb, line 15
def run(action)
  generator.public_send(action)
end

Definition files