bridge_cache 0.4.3 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20231024151151_add_job_type_to_bridge_cache_users.rb +2 -0
- data/db/migrate/20240719203015_add_continuing_education_credits_to_course_templates.rb +5 -0
- data/lib/bridge_cache/version.rb +1 -1
- data/test/dummy/Gemfile +14 -0
- data/test/dummy/MIT-LICENSE +20 -0
- data/test/dummy/README.md +28 -0
- data/test/dummy/Rakefile +8 -0
- data/test/dummy/app/assets/config/dummy_manifest.js +1 -0
- data/test/dummy/app/assets/stylesheets/dummy/application.css +15 -0
- data/test/dummy/app/controllers/dummy/application_controller.rb +4 -0
- data/test/dummy/app/helpers/dummy/application_helper.rb +4 -0
- data/test/dummy/app/jobs/dummy/application_job.rb +4 -0
- data/test/dummy/app/mailers/dummy/application_mailer.rb +6 -0
- data/test/dummy/app/models/dummy/application_record.rb +5 -0
- data/test/dummy/app/views/layouts/dummy/application.html.erb +15 -0
- data/test/dummy/bin/rails +14 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/dummy.gemspec +26 -0
- data/test/dummy/lib/dummy/engine.rb +5 -0
- data/test/dummy/lib/dummy/version.rb +3 -0
- data/test/dummy/lib/dummy.rb +6 -0
- data/test/dummy/lib/tasks/dummy_tasks.rake +4 -0
- data/test/dummy/test/dummy/Rakefile +6 -0
- data/test/dummy/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/test/dummy/app/jobs/application_job.rb +7 -0
- data/test/dummy/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/test/dummy/app/views/layouts/application.html.erb +15 -0
- data/test/dummy/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/test/dummy/bin/rails +4 -0
- data/test/dummy/test/dummy/bin/rake +4 -0
- data/test/dummy/test/dummy/bin/setup +33 -0
- data/test/dummy/test/dummy/config/application.rb +29 -0
- data/test/dummy/test/dummy/config/boot.rb +5 -0
- data/test/dummy/test/dummy/config/cable.yml +10 -0
- data/test/dummy/test/dummy/config/database.yml +84 -0
- data/test/dummy/test/dummy/config/environment.rb +5 -0
- data/test/dummy/test/dummy/config/environments/development.rb +76 -0
- data/test/dummy/test/dummy/config/environments/production.rb +97 -0
- data/test/dummy/test/dummy/config/environments/test.rb +64 -0
- data/test/dummy/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/test/dummy/config/initializers/content_security_policy.rb +25 -0
- data/test/dummy/test/dummy/config/initializers/filter_parameter_logging.rb +8 -0
- data/test/dummy/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/test/dummy/config/initializers/permissions_policy.rb +13 -0
- data/test/dummy/test/dummy/config/locales/en.yml +31 -0
- data/test/dummy/test/dummy/config/puma.rb +35 -0
- data/test/dummy/test/dummy/config/routes.rb +3 -0
- data/test/dummy/test/dummy/config/storage.yml +34 -0
- data/test/dummy/test/dummy/config.ru +6 -0
- data/test/dummy/test/dummy/log/test.log +0 -0
- data/test/dummy/test/dummy/public/404.html +67 -0
- data/test/dummy/test/dummy/public/422.html +67 -0
- data/test/dummy/test/dummy/public/500.html +66 -0
- data/test/dummy/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/dummy/tmp/local_secret.txt +1 -0
- data/test/dummy/test/dummy_test.rb +7 -0
- data/test/dummy/test/integration/navigation_test.rb +7 -0
- data/test/dummy/test/test_helper.rb +15 -0
- metadata +133 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04ee63b8da4832dd8249fcc9d4479280130dcab34bd81a30e0cadf14867fd68
|
4
|
+
data.tar.gz: fe909599881cd7e83f57c312f03ec93ca96305952475cee3829d29fd162c4146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17e847f3915b860d2ebea3c85d19548cdec29f6480ab93cd92811e01090a81d5a7b3c718e57f88be43e1231a3a7522379b69845d9783abdcce74aedb1b19872b
|
7
|
+
data.tar.gz: 7c3b0ea2532adc37a9bd66112e8456bc48fe574dc1d429fb33bc96d5ef6f6b1fda3b4b72ce4533be316e447996f395f9ed0b7f799944135439ec9b8183ab19b0
|
data/lib/bridge_cache/version.rb
CHANGED
data/test/dummy/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
+
|
4
|
+
# Specify your gem's dependencies in dummy.gemspec.
|
5
|
+
gemspec
|
6
|
+
|
7
|
+
gem "puma"
|
8
|
+
|
9
|
+
gem "pg"
|
10
|
+
|
11
|
+
gem "sprockets-rails"
|
12
|
+
|
13
|
+
# Start debugger with binding.b [https://github.com/ruby/debug]
|
14
|
+
# gem "debug", ">= 1.0.0"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright Scott Young
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Dummy
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "dummy"
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install dummy
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
//= link_directory ../stylesheets/dummy .css
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
+
# installed from the root of your application.
|
4
|
+
|
5
|
+
ENGINE_ROOT = File.expand_path("..", __dir__)
|
6
|
+
ENGINE_PATH = File.expand_path("../lib/dummy/engine", __dir__)
|
7
|
+
APP_PATH = File.expand_path("../test/dummy/config/application", __dir__)
|
8
|
+
|
9
|
+
# Set up gems listed in the Gemfile.
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
11
|
+
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
12
|
+
|
13
|
+
require "rails/all"
|
14
|
+
require "rails/engine/commands"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require_relative "lib/dummy/version"
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "dummy"
|
5
|
+
spec.version = Dummy::VERSION
|
6
|
+
spec.authors = ["Scott Young"]
|
7
|
+
spec.email = ["scott.young@getbridge.com"]
|
8
|
+
spec.homepage = "TODO"
|
9
|
+
spec.summary = "TODO: Summary of Dummy."
|
10
|
+
spec.description = "TODO: Description of Dummy."
|
11
|
+
spec.license = "MIT"
|
12
|
+
|
13
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
|
14
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
15
|
+
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
19
|
+
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
20
|
+
|
21
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
22
|
+
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.add_dependency "rails", ">= 7.1.3"
|
26
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class ApplicationJob < ActiveJob::Base
|
2
|
+
# Automatically retry jobs that encountered a deadlock
|
3
|
+
# retry_on ActiveRecord::Deadlocked
|
4
|
+
|
5
|
+
# Most jobs are safe to ignore if the underlying records are no longer available
|
6
|
+
# discard_on ActiveJob::DeserializationError
|
7
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<%= csrf_meta_tags %>
|
7
|
+
<%= csp_meta_tag %>
|
8
|
+
|
9
|
+
<%= stylesheet_link_tag "application" %>
|
10
|
+
</head>
|
11
|
+
|
12
|
+
<body>
|
13
|
+
<%= yield %>
|
14
|
+
</body>
|
15
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require "fileutils"
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = File.expand_path("..", __dir__)
|
6
|
+
|
7
|
+
def system!(*args)
|
8
|
+
system(*args, exception: true)
|
9
|
+
end
|
10
|
+
|
11
|
+
FileUtils.chdir APP_ROOT do
|
12
|
+
# This script is a way to set up or update your development environment automatically.
|
13
|
+
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
14
|
+
# Add necessary setup steps to this file.
|
15
|
+
|
16
|
+
puts "== Installing dependencies =="
|
17
|
+
system! "gem install bundler --conservative"
|
18
|
+
system("bundle check") || system!("bundle install")
|
19
|
+
|
20
|
+
# puts "\n== Copying sample files =="
|
21
|
+
# unless File.exist?("config/database.yml")
|
22
|
+
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
|
23
|
+
# end
|
24
|
+
|
25
|
+
puts "\n== Preparing database =="
|
26
|
+
system! "bin/rails db:prepare"
|
27
|
+
|
28
|
+
puts "\n== Removing old logs and tempfiles =="
|
29
|
+
system! "bin/rails log:clear tmp:clear"
|
30
|
+
|
31
|
+
puts "\n== Restarting application server =="
|
32
|
+
system! "bin/rails restart"
|
33
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative "boot"
|
2
|
+
|
3
|
+
require "rails/all"
|
4
|
+
|
5
|
+
# Require the gems listed in Gemfile, including any gems
|
6
|
+
# you've limited to :test, :development, or :production.
|
7
|
+
Bundler.require(*Rails.groups)
|
8
|
+
|
9
|
+
module Dummy
|
10
|
+
class Application < Rails::Application
|
11
|
+
config.load_defaults Rails::VERSION::STRING.to_f
|
12
|
+
|
13
|
+
# For compatibility with applications that use this config
|
14
|
+
config.action_controller.include_all_helpers = false
|
15
|
+
|
16
|
+
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
17
|
+
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
18
|
+
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
19
|
+
config.autoload_lib(ignore: %w(assets tasks))
|
20
|
+
|
21
|
+
# Configuration for the application, engines, and railties goes here.
|
22
|
+
#
|
23
|
+
# These settings can be overridden in specific environments using the files
|
24
|
+
# in config/environments, which are processed later.
|
25
|
+
#
|
26
|
+
# config.time_zone = "Central Time (US & Canada)"
|
27
|
+
# config.eager_load_paths << Rails.root.join("extras")
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# PostgreSQL. Versions 9.3 and up are supported.
|
2
|
+
#
|
3
|
+
# Install the pg driver:
|
4
|
+
# gem install pg
|
5
|
+
# On macOS with Homebrew:
|
6
|
+
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
7
|
+
# On Windows:
|
8
|
+
# gem install pg
|
9
|
+
# Choose the win32 build.
|
10
|
+
# Install PostgreSQL and put its /bin directory on your path.
|
11
|
+
#
|
12
|
+
# Configure Using Gemfile
|
13
|
+
# gem "pg"
|
14
|
+
#
|
15
|
+
default: &default
|
16
|
+
adapter: postgresql
|
17
|
+
encoding: unicode
|
18
|
+
# For details on connection pooling, see Rails configuration guide
|
19
|
+
# https://guides.rubyonrails.org/configuring.html#database-pooling
|
20
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
21
|
+
|
22
|
+
development:
|
23
|
+
<<: *default
|
24
|
+
database: dummy_development
|
25
|
+
|
26
|
+
# The specified database role being used to connect to PostgreSQL.
|
27
|
+
# To create additional roles in PostgreSQL see `$ createuser --help`.
|
28
|
+
# When left blank, PostgreSQL will use the default role. This is
|
29
|
+
# the same name as the operating system user running Rails.
|
30
|
+
#username: dummy
|
31
|
+
|
32
|
+
# The password associated with the PostgreSQL role (username).
|
33
|
+
#password:
|
34
|
+
|
35
|
+
# Connect on a TCP socket. Omitted by default since the client uses a
|
36
|
+
# domain socket that doesn't need configuration. Windows does not have
|
37
|
+
# domain sockets, so uncomment these lines.
|
38
|
+
#host: localhost
|
39
|
+
|
40
|
+
# The TCP port the server listens on. Defaults to 5432.
|
41
|
+
# If your server runs on a different port number, change accordingly.
|
42
|
+
#port: 5432
|
43
|
+
|
44
|
+
# Schema search path. The server defaults to $user,public
|
45
|
+
#schema_search_path: myapp,sharedapp,public
|
46
|
+
|
47
|
+
# Minimum log levels, in increasing order:
|
48
|
+
# debug5, debug4, debug3, debug2, debug1,
|
49
|
+
# log, notice, warning, error, fatal, and panic
|
50
|
+
# Defaults to warning.
|
51
|
+
#min_messages: notice
|
52
|
+
|
53
|
+
# Warning: The database defined as "test" will be erased and
|
54
|
+
# re-generated from your development database when you run "rake".
|
55
|
+
# Do not set this db to the same as development or production.
|
56
|
+
test:
|
57
|
+
<<: *default
|
58
|
+
database: dummy_test
|
59
|
+
|
60
|
+
# As with config/credentials.yml, you never want to store sensitive information,
|
61
|
+
# like your database password, in your source code. If your source code is
|
62
|
+
# ever seen by anyone, they now have access to your database.
|
63
|
+
#
|
64
|
+
# Instead, provide the password or a full connection URL as an environment
|
65
|
+
# variable when you boot the app. For example:
|
66
|
+
#
|
67
|
+
# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
|
68
|
+
#
|
69
|
+
# If the connection URL is provided in the special DATABASE_URL environment
|
70
|
+
# variable, Rails will automatically merge its configuration values on top of
|
71
|
+
# the values provided in this file. Alternatively, you can specify a connection
|
72
|
+
# URL environment variable explicitly:
|
73
|
+
#
|
74
|
+
# production:
|
75
|
+
# url: <%= ENV["MY_APP_DATABASE_URL"] %>
|
76
|
+
#
|
77
|
+
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
78
|
+
# for a full overview on how database connection configuration can be specified.
|
79
|
+
#
|
80
|
+
production:
|
81
|
+
<<: *default
|
82
|
+
database: dummy_production
|
83
|
+
username: dummy
|
84
|
+
password: <%= ENV["DUMMY_DATABASE_PASSWORD"] %>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
require "active_support/core_ext/integer/time"
|
2
|
+
|
3
|
+
Rails.application.configure do
|
4
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
5
|
+
|
6
|
+
# In the development environment your application's code is reloaded any time
|
7
|
+
# it changes. This slows down response time but is perfect for development
|
8
|
+
# since you don't have to restart the web server when you make code changes.
|
9
|
+
config.enable_reloading = true
|
10
|
+
|
11
|
+
# Do not eager load code on boot.
|
12
|
+
config.eager_load = false
|
13
|
+
|
14
|
+
# Show full error reports.
|
15
|
+
config.consider_all_requests_local = true
|
16
|
+
|
17
|
+
# Enable server timing
|
18
|
+
config.server_timing = true
|
19
|
+
|
20
|
+
# Enable/disable caching. By default caching is disabled.
|
21
|
+
# Run rails dev:cache to toggle caching.
|
22
|
+
if Rails.root.join("tmp/caching-dev.txt").exist?
|
23
|
+
config.action_controller.perform_caching = true
|
24
|
+
config.action_controller.enable_fragment_cache_logging = true
|
25
|
+
|
26
|
+
config.cache_store = :memory_store
|
27
|
+
config.public_file_server.headers = {
|
28
|
+
"Cache-Control" => "public, max-age=#{2.days.to_i}"
|
29
|
+
}
|
30
|
+
else
|
31
|
+
config.action_controller.perform_caching = false
|
32
|
+
|
33
|
+
config.cache_store = :null_store
|
34
|
+
end
|
35
|
+
|
36
|
+
# Store uploaded files on the local file system (see config/storage.yml for options).
|
37
|
+
config.active_storage.service = :local
|
38
|
+
|
39
|
+
# Don't care if the mailer can't send.
|
40
|
+
config.action_mailer.raise_delivery_errors = false
|
41
|
+
|
42
|
+
config.action_mailer.perform_caching = false
|
43
|
+
|
44
|
+
# Print deprecation notices to the Rails logger.
|
45
|
+
config.active_support.deprecation = :log
|
46
|
+
|
47
|
+
# Raise exceptions for disallowed deprecations.
|
48
|
+
config.active_support.disallowed_deprecation = :raise
|
49
|
+
|
50
|
+
# Tell Active Support which deprecation messages to disallow.
|
51
|
+
config.active_support.disallowed_deprecation_warnings = []
|
52
|
+
|
53
|
+
# Raise an error on page load if there are pending migrations.
|
54
|
+
config.active_record.migration_error = :page_load
|
55
|
+
|
56
|
+
# Highlight code that triggered database queries in logs.
|
57
|
+
config.active_record.verbose_query_logs = true
|
58
|
+
|
59
|
+
# Highlight code that enqueued background job in logs.
|
60
|
+
config.active_job.verbose_enqueue_logs = true
|
61
|
+
|
62
|
+
# Suppress logger output for asset requests.
|
63
|
+
config.assets.quiet = true
|
64
|
+
|
65
|
+
# Raises error for missing translations.
|
66
|
+
# config.i18n.raise_on_missing_translations = true
|
67
|
+
|
68
|
+
# Annotate rendered view with file names.
|
69
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
70
|
+
|
71
|
+
# Uncomment if you wish to allow Action Cable access from any origin.
|
72
|
+
# config.action_cable.disable_request_forgery_protection = true
|
73
|
+
|
74
|
+
# Raise error when a before_action's only/except options reference missing actions
|
75
|
+
config.action_controller.raise_on_missing_callback_actions = true
|
76
|
+
end
|