rails/railties/lib
Mike Dalessio f9e86f1bf5
Improve how the sessions generator adds bcrypt (#52346)
* doc: fix CHANGELOG message for sessions generator

* fix: Sessions generator adds bcrypt more robustly

Use Thor's `uncomment_lines` instead of `gsub_file`.

If the Gemfile does not contain bcrypt, either commented or
uncommented, then run `bundle add bcrypt`.

Make sure all bundler commands run within `Bundler.with_original_env`
to avoid bundler resolution problems while trying to resolve bundler
dependencies. Typically the failure mode here is seeing:

> Could not find bcrypt-3.1.20 in cached gems or installed locally (Bundler::GemNotFound)

while bootstrapping the process that will run bundle-install or bundle-add.
2024-07-17 08:14:31 +02:00
..
minitest Point to the right executable when warning about --profile 2024-05-23 16:19:53 +00:00
rails Improve how the sessions generator adds bcrypt (#52346) 2024-07-17 08:14:31 +02:00
rails.rb add documentation for Rails.env.local? 2024-03-22 13:16:02 +01:00