Upgraded to Rails 4

This commit is contained in:
2019-02-24 15:47:27 +01:00
parent f52ec0411d
commit f809f36c06
86 changed files with 732 additions and 662 deletions

View File

@@ -1,6 +1,8 @@
Fetsite::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
config.serve_static_files = false
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.

View File

@@ -3,7 +3,8 @@ Fetsite::Application.configure do
# Code is not reloaded between requests
config.cache_classes = true
config.serve_static_files = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true

View File

@@ -8,7 +8,7 @@ Fetsite::Application.configure do
config.cache_classes = true
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true
config.serve_static_files = false
config.static_cache_control = "public, max-age=3600"
# Log error messages when you accidentally call methods on nil