註冊要在執行 bundle binstubs 之後執行的回呼。
after_bundle do git add: '.' end
來源:顯示 | GitHub
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 595 def after_bundle(&block) # :doc: @after_bundle_callbacks << block end