-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bumps main dependencies, * Upgrades the example app.
- Loading branch information
1 parent
0ecb1ba
commit 1343c5a
Showing
8 changed files
with
69 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Load the Rails application. | ||
require File.expand_path('../application', __FILE__) | ||
require_relative "application" | ||
|
||
# Initialize the Rails application. | ||
Rails.application.initialize! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
Rails.application.configure do | ||
# Settings specified here will take precedence over those in config/application.rb. | ||
# The test environment is used exclusively to run your application's | ||
# test suite. You never need to work with it otherwise. Remember that | ||
# your test database is "scratch space" for the test suite and is wiped | ||
# and recreated between test runs. Don't rely on the data there! | ||
|
||
# The test environment is used exclusively to run your application's | ||
# test suite. You never need to work with it otherwise. Remember that | ||
# your test database is "scratch space" for the test suite and is wiped | ||
# and recreated between test runs. Don't rely on the data there! | ||
Rails.application.configure do | ||
config.cache_classes = true | ||
|
||
# Do not eager load code on boot. This avoids loading your whole application | ||
# just for the purpose of running a single test. If you are using a tool that | ||
# preloads Rails for running tests, you may have to set it to true. | ||
config.eager_load = false | ||
|
||
# Configure static file server for tests with Cache-Control for performance. | ||
# Configure public file server for tests with Cache-Control for performance. | ||
if config.respond_to?(:public_file_server) | ||
config.public_file_server.enabled = true | ||
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } | ||
config.public_file_server.headers = { | ||
"Cache-Control" => "public, max-age=3600", | ||
} | ||
else | ||
config.serve_static_files = true | ||
config.static_cache_control = 'public, max-age=3600' | ||
config.static_cache_control = "public, max-age=3600" | ||
end | ||
|
||
# Show full error reports and disable caching. | ||
config.consider_all_requests_local = true | ||
config.action_controller.perform_caching = false | ||
config.cache_store = :null_store | ||
|
||
# Raise exceptions instead of rendering exception templates. | ||
config.action_dispatch.show_exceptions = false | ||
|
||
# Disable request forgery protection in test environment. | ||
config.action_controller.allow_forgery_protection = false | ||
|
||
# Randomize the order test cases are executed. | ||
config.active_support.test_order = :random | ||
|
||
# Print deprecation notices to the stderr. | ||
config.active_support.deprecation = :stderr | ||
|
||
# Raises error for missing translations | ||
# Raises error for missing translations. | ||
config.action_view.raise_on_missing_translations = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Rails.application.config.action_dispatch.cookies_serializer = :json | ||
Rails.application.config.action_dispatch.cookies_serializer = :marshal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters