Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run after_bundle blocks with app:template command #48269

Commits on May 21, 2023

  1. Run after_bundle blocks with app:template command

    App templates may contain `after_bundle` blocks which should be run
    after the template is executed, after running `bundle install`.  For
    example:
    
      ```ruby
      gem "devise"
    
      after_bundle do
        generate "devise:install"
      end
      ```
    
    Prior to this commit, `bundle install` and `after_bundle` blocks were
    run only when applying a template via `rails new`.  This commit makes
    `bin/rails app:template` run them as well.
    
    Co-authored-by: "Gerard (Gerry) Caulfield" <git@caulfield.me>
    jonathanhefner and gerrywastaken committed May 21, 2023
    Configuration menu
    Copy the full SHA
    83e69c2 View commit details
    Browse the repository at this point in the history