Skip to content

Commit

Permalink
Fix template for existing Rails 7.1 applications
Browse files Browse the repository at this point in the history
Rails 7.1 has changed the behaviour of applying a template to an existing application.
rails/rails@83e69c2
Because of this, we only need to explicitly run `after_bundle` actions
when applying the template to existing Rails applications prior to 7.1.

Fixes #1743
  • Loading branch information
porbas committed Mar 20, 2024
1 parent 6183967 commit 046a59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions APP_TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ after_bundle do
end

profile.for_existing_app do
run_after_bundle_callbacks
end
run_after_bundle_callbacks if Gem::Version.new(Rails.version) < Gem::Version.new("7.1.0")
end

0 comments on commit 046a59c

Please sign in to comment.