Fix warnings
This commit is contained in:
parent
b3922a21dd
commit
1d1c088e5d
3 changed files with 11 additions and 5 deletions
|
|
@ -34,6 +34,8 @@ module HenseiApi
|
||||||
config.active_record.query_log_tags = [:application, :controller, :action, :job]
|
config.active_record.query_log_tags = [:application, :controller, :action, :job]
|
||||||
config.active_record.cache_query_log_tags = true
|
config.active_record.cache_query_log_tags = true
|
||||||
|
|
||||||
|
config.active_support.to_time_preserves_timezone = :zone
|
||||||
|
|
||||||
# API-only application configuration
|
# API-only application configuration
|
||||||
config.api_only = true
|
config.api_only = true
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
require "active_support/core_ext/integer/time"
|
require 'active_support/core_ext/integer/time'
|
||||||
|
|
||||||
# The test environment is used exclusively to run your application's
|
# The test environment is used exclusively to run your application's
|
||||||
# test suite. You never need to work with it otherwise. Remember that
|
# test suite. You never need to work with it otherwise. Remember that
|
||||||
|
|
@ -9,21 +9,21 @@ Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
# Turn false under Spring and add config.action_view.cache_template_loading = true.
|
# Turn false under Spring and add config.action_view.cache_template_loading = true.
|
||||||
config.cache_classes = true
|
config.cache_classes = false
|
||||||
|
|
||||||
# Eager loading loads your whole application. When running a single test locally,
|
# Eager loading loads your whole application. When running a single test locally,
|
||||||
# this probably isn't necessary. It's a good idea to do in a continuous integration
|
# this probably isn't necessary. It's a good idea to do in a continuous integration
|
||||||
# system, or in some way before deploying your code.
|
# system, or in some way before deploying your code.
|
||||||
config.eager_load = ENV["CI"].present?
|
config.eager_load = ENV['CI'].present?
|
||||||
|
|
||||||
# Configure public file server for tests with Cache-Control for performance.
|
# Configure public file server for tests with Cache-Control for performance.
|
||||||
config.public_file_server.enabled = true
|
config.public_file_server.enabled = true
|
||||||
config.public_file_server.headers = {
|
config.public_file_server.headers = {
|
||||||
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Show full error reports and disable caching.
|
# Show full error reports and disable caching.
|
||||||
config.consider_all_requests_local = true
|
config.consider_all_requests_local = true
|
||||||
config.action_controller.perform_caching = false
|
config.action_controller.perform_caching = false
|
||||||
config.cache_store = :null_store
|
config.cache_store = :null_store
|
||||||
|
|
||||||
|
|
|
||||||
4
config/initializers/oj.rb
Normal file
4
config/initializers/oj.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# Explicitly configure Oj to mimic JSON.
|
||||||
|
Oj::Rails.mimic_JSON
|
||||||
Loading…
Reference in a new issue