W3cubDocs

/Ruby on Rails 7.0

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.