aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-10-01 19:52:52 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-10-01 19:52:52 -0700
commit037e50ec39c7c3d58a102a6584e2740652420d1d (patch)
tree17dfc52c9192db2cf6b79a77df7a15260527fa4c /railties/lib/rails/generators
parentf934aecf61cd2c5df8a598fbddc83516f92d96c0 (diff)
parentf4a6f1d3f0d7ec2eb7a779a74f587cb953992ea8 (diff)
downloadrails-037e50ec39c7c3d58a102a6584e2740652420d1d.tar.gz
rails-037e50ec39c7c3d58a102a6584e2740652420d1d.tar.bz2
rails-037e50ec39c7c3d58a102a6584e2740652420d1d.zip
Merge pull request #7794 from guilleiguaran/extract-rack-cache
Use Rack::Cache middleware only if is in Gemfile
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile
index 55a6b3f4f2..69027f2903 100644
--- a/railties/lib/rails/generators/rails/app/templates/Gemfile
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -9,6 +9,10 @@ source 'https://rubygems.org'
<%= assets_gemfile_entry %>
<%= javascript_gemfile_entry %>
+# Puts a simple HTTP cache in front of your app.
+# For large-scale production use, consider using a caching reverse proxy like nginx, varnish, or squid.
+gem 'rack-cache', '~> 1.2'
+
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'