跳至内容 跳至搜索
方法
G
R

类公共方法

generator()

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

# File railties/lib/rails/engine/updater.rb, line 15
def run(action)
  generator.public_send(action)
end