diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-03 13:07:39 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-03 13:07:39 +0200 |
commit | 1ca81238b5abcbdad667d45a588fdb1f68a0516e (patch) | |
tree | b775f19eeeff93a3efb805eb8f2082116b9cef63 /railties/lib/rails/application | |
parent | 06ddda0a5f659cab8c2c76cfcb3b27ac5bb47ea6 (diff) | |
download | rails-1ca81238b5abcbdad667d45a588fdb1f68a0516e.tar.gz rails-1ca81238b5abcbdad667d45a588fdb1f68a0516e.tar.bz2 rails-1ca81238b5abcbdad667d45a588fdb1f68a0516e.zip |
Add static_cache_control as configuration option and set a default for test. Should improve performance in acceptance tests.
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index f818313955..29b9c27a13 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -9,7 +9,7 @@ module Rails :dependency_loading, :encoding, :filter_parameters, :force_ssl, :helpers_paths, :logger, :preload_frameworks, :reload_plugins, :secret_token, :serve_static_assets, - :session_options, :time_zone, :whiny_nils + :static_cache_control, :session_options, :time_zone, :whiny_nils attr_writer :log_level @@ -22,6 +22,7 @@ module Rails @helpers_paths = [] @dependency_loading = true @serve_static_assets = true + @static_cache_control = nil @force_ssl = false @session_store = :cookie_store @session_options = {} |