rails / 7.0.0 / rails / generators / appgenerator.html /

class Rails::Generators::AppGenerator

Parent:
Rails::Generators::AppBase

Private Instance Methods

after_bundle (&block) Show source
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 537
def after_bundle(&block) # :doc:
  @after_bundle_callbacks << block
end

Registers a callback to be executed after bundle binstubs have run.

after_bundle do
  git add: '.'
end

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.