We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9785c0 commit 5a51fd9Copy full SHA for 5a51fd9
railties/lib/rails/generators/rails/authentication/authentication_generator.rb
@@ -37,7 +37,7 @@ def configure_authentication_routes
37
end
38
39
def enable_bcrypt
40
- if File.read("Gemfile").include?('gem "bcrypt"')
+ if File.read(File.expand_path("Gemfile", destination_root)).include?('gem "bcrypt"')
41
uncomment_lines "Gemfile", /gem "bcrypt"/
42
Bundler.with_original_env { execute_command :bundle, "install --quiet" }
43
else
0 commit comments