You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve how the sessions generator adds bcrypt (rails#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.
0 commit comments