Upgrade to Rails 5.0.1

This commit is contained in:
Christoph Haas 2016-10-29 17:41:47 +02:00
parent 68e33f3e5a
commit 48840f6254
15 changed files with 178 additions and 74 deletions

View file

@ -1,4 +1,4 @@
Debshots::Application.configure do
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
@ -9,24 +9,32 @@ Debshots::Application.configure do
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports
config.consider_all_requests_local = true
# Show full error reports.
config.consider_all_requests_local = true
# Disable caching (except for working on caching)
config.action_controller.perform_caching = false
# config.action_controller.perform_caching = true
# config.cache_store = :file_store, "#{Rails.root.to_s}/tmp/cache/filestore"
# Enable/disable caching. By default caching is disabled.
if Rails.root.join('tmp/caching-dev.txt').exist?
config.action_controller.perform_caching = true
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=172800'
}
else
config.action_controller.perform_caching = false
config.cache_store = :null_store
end
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
config.action_mailer.perform_caching = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations
# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets.
@ -34,8 +42,18 @@ Debshots::Application.configure do
# number of complex assets.
config.assets.debug = true
# ActiveRecord errors propagate normally (forward deprecation to Rails 5)
config.active_record.raise_in_transactional_callbacks = true
# Suppress logger output for asset requests.
config.assets.quiet = true
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
# Suppress logger output for asset requests.
config.assets.quiet = true
# DEB package repositories to parse when running "rake debshots:... tasks"
config.package_sources = [
@ -45,6 +63,8 @@ Debshots::Application.configure do
#components: ['main','restricted','universe','multiverse']
}
]
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
# Example file for development to avoid queries to online service
config.ubuntu_reviews_api_url = 'test/files/ubuntu-review-api/cream'