Skip to content

Commit 5d9ee65

Browse files
author
David Heinemeier Hansson
committed
Suggest Kredis + bcrypt as long as we're not minimal
1 parent 5acc32a commit 5d9ee65

File tree

1 file changed

+10
-5
lines changed
  • railties/lib/rails/generators/rails/app/templates

1 file changed

+10
-5
lines changed

railties/lib/rails/generators/rails/app/templates/Gemfile.tt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ ruby <%= "\"#{RUBY_VERSION}\"" -%>
1010
<%= gem.commented_out ? "# " : "" %>gem "<%= gem.name %>"<%= %(, "#{gem.version}") if gem.version -%>
1111
<% if gem.options.any? -%>, <%= gem.options.map { |k,v| "#{k}: #{v.inspect}" }.join(", ") %><% end -%>
1212
<% end %>
13+
<% unless options.minimal? -%>
14+
15+
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
16+
# gem "kredis"
17+
18+
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
19+
# gem "bcrypt", "~> 3.1.7"
20+
<% end -%>
1321

1422
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
1523
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
16-
1724
<% if depend_on_bootsnap? -%>
25+
1826
# Reduces boot times through caching; required in config/boot.rb
1927
gem "bootsnap", ">= 1.4.4", require: false
20-
21-
<%- end -%>
22-
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
23-
# gem "bcrypt", "~> 3.1.7"
28+
<% end -%>
2429
<% unless options.skip_sprockets? || options.minimal? -%>
2530

2631
# Use Sass to process CSS

0 commit comments

Comments
 (0)