跳至内容 跳至搜索
方法
A

实例私有方法

after_bundle(&block)

注册一个回调,在 bundle binstubs 运行后执行。

after_bundle do
  git add: '.'
end
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 613
def after_bundle(&block) # :doc:
  @after_bundle_callbacks << block
end