interactive_record 0.0.1alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.browserslistrc +1 -0
  3. data/.gitattributes +10 -0
  4. data/.gitignore +31 -0
  5. data/.orchestration.yml +4 -0
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +6 -0
  8. data/.ruby-version +1 -0
  9. data/Gemfile +40 -0
  10. data/Gemfile.lock +287 -0
  11. data/LICENSE.txt +21 -0
  12. data/Makefile +27 -0
  13. data/README.md +39 -0
  14. data/Rakefile +8 -0
  15. data/app/assets/config/manifest.js +2 -0
  16. data/app/assets/images/.keep +0 -0
  17. data/app/assets/stylesheets/application.css +15 -0
  18. data/app/channels/application_cable/channel.rb +6 -0
  19. data/app/channels/application_cable/connection.rb +6 -0
  20. data/app/controllers/application_controller.rb +4 -0
  21. data/app/controllers/concerns/.keep +0 -0
  22. data/app/helpers/application_helper.rb +5 -0
  23. data/app/javascript/channels/consumer.js +6 -0
  24. data/app/javascript/channels/index.js +5 -0
  25. data/app/javascript/packs/application.js +13 -0
  26. data/app/javascript/packs/hello_react.jsx +26 -0
  27. data/app/jobs/application_job.rb +9 -0
  28. data/app/mailers/application_mailer.rb +6 -0
  29. data/app/models/application_record.rb +6 -0
  30. data/app/models/concerns/.keep +0 -0
  31. data/app/views/layouts/application.html.erb +16 -0
  32. data/app/views/layouts/mailer.html.erb +13 -0
  33. data/app/views/layouts/mailer.text.erb +1 -0
  34. data/babel.config.js +87 -0
  35. data/bin/bundle +118 -0
  36. data/bin/console +15 -0
  37. data/bin/rails +7 -0
  38. data/bin/rake +7 -0
  39. data/bin/setup +38 -0
  40. data/bin/spring +16 -0
  41. data/bin/webpack +19 -0
  42. data/bin/webpack-dev-server +19 -0
  43. data/bin/yarn +19 -0
  44. data/config.ru +8 -0
  45. data/config/application.rb +24 -0
  46. data/config/boot.rb +6 -0
  47. data/config/cable.yml +10 -0
  48. data/config/credentials.yml.enc +1 -0
  49. data/config/database.yml +25 -0
  50. data/config/environment.rb +7 -0
  51. data/config/environments/development.rb +70 -0
  52. data/config/environments/production.rb +116 -0
  53. data/config/environments/test.rb +62 -0
  54. data/config/initializers/application_controller_renderer.rb +9 -0
  55. data/config/initializers/backtrace_silencers.rb +10 -0
  56. data/config/initializers/content_security_policy.rb +31 -0
  57. data/config/initializers/cookies_serializer.rb +7 -0
  58. data/config/initializers/filter_parameter_logging.rb +8 -0
  59. data/config/initializers/inflections.rb +17 -0
  60. data/config/initializers/mime_types.rb +5 -0
  61. data/config/initializers/permissions_policy.rb +12 -0
  62. data/config/initializers/wrap_parameters.rb +16 -0
  63. data/config/locales/en.yml +33 -0
  64. data/config/puma.rb +45 -0
  65. data/config/routes.rb +5 -0
  66. data/config/spring.rb +8 -0
  67. data/config/storage.yml +34 -0
  68. data/config/unicorn.rb +19 -0
  69. data/config/webpack/development.js +5 -0
  70. data/config/webpack/environment.js +3 -0
  71. data/config/webpack/production.js +5 -0
  72. data/config/webpack/test.js +5 -0
  73. data/config/webpacker.yml +93 -0
  74. data/db/schema.rb +15 -0
  75. data/db/seeds.rb +8 -0
  76. data/interactive_record.gemspec +31 -0
  77. data/lib/assets/.keep +0 -0
  78. data/lib/interactive_record.rb +8 -0
  79. data/lib/interactive_record/version.rb +5 -0
  80. data/lib/tasks/.keep +0 -0
  81. data/log/.keep +0 -0
  82. data/orchestration/Dockerfile +32 -0
  83. data/orchestration/Makefile +508 -0
  84. data/orchestration/deploy.mk +69 -0
  85. data/orchestration/docker-compose.development.yml +4 -0
  86. data/orchestration/docker-compose.production.yml +28 -0
  87. data/orchestration/docker-compose.test.yml +4 -0
  88. data/orchestration/entrypoint.sh +17 -0
  89. data/package.json +20 -0
  90. data/postcss.config.js +12 -0
  91. data/public/404.html +67 -0
  92. data/public/422.html +67 -0
  93. data/public/500.html +66 -0
  94. data/public/apple-touch-icon-precomposed.png +0 -0
  95. data/public/apple-touch-icon.png +0 -0
  96. data/public/favicon.ico +0 -0
  97. data/public/robots.txt +1 -0
  98. data/storage/.keep +0 -0
  99. data/tmp/.keep +0 -0
  100. data/tmp/pids/.keep +0 -0
  101. data/vendor/.keep +0 -0
  102. data/yarn.lock +7785 -0
  103. metadata +147 -0
data/bin/rails ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ load File.expand_path('spring', __dir__)
5
+ APP_PATH = File.expand_path('../config/application', __dir__)
6
+ require_relative '../config/boot'
7
+ require 'rails/commands'
data/bin/rake ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ load File.expand_path('spring', __dir__)
5
+ require_relative '../config/boot'
6
+ require 'rake'
7
+ Rake.application.run
data/bin/setup ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'fileutils'
5
+
6
+ # path to your application root.
7
+ APP_ROOT = File.expand_path('..', __dir__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ FileUtils.chdir APP_ROOT do
14
+ # This script is a way to set up or update your development environment automatically.
15
+ # This script is idempotent, so that you can run it at any time and get an expectable outcome.
16
+ # Add necessary setup steps to this file.
17
+
18
+ puts '== Installing dependencies =='
19
+ system! 'gem install bundler --conservative'
20
+ system('bundle check') || system!('bundle install')
21
+
22
+ # Install JavaScript dependencies
23
+ system! 'bin/yarn'
24
+
25
+ # puts "\n== Copying sample files =="
26
+ # unless File.exist?('config/database.yml')
27
+ # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
28
+ # end
29
+
30
+ puts "\n== Preparing database =="
31
+ system! 'bin/rails db:prepare'
32
+
33
+ puts "\n== Removing old logs and tempfiles =="
34
+ system! 'bin/rails log:clear tmp:clear'
35
+
36
+ puts "\n== Restarting application server =="
37
+ system! 'bin/rails restart'
38
+ end
data/bin/spring ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ if !defined?(Spring) && [nil, 'development', 'test'].include?(ENV['RAILS_ENV'])
5
+ gem 'bundler'
6
+ require 'bundler'
7
+
8
+ # Load Spring without loading other gems in the Gemfile, for speed.
9
+ Bundler.locked_gems&.specs&.find { |spec| spec.name == 'spring' }&.tap do |spring|
10
+ Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
11
+ gem 'spring', spring.version
12
+ require 'spring/binstub'
13
+ rescue Gem::LoadError
14
+ # Ignore when Spring is not installed.
15
+ end
16
+ end
data/bin/webpack ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'
5
+ ENV['NODE_ENV'] ||= 'development'
6
+
7
+ require 'pathname'
8
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
9
+ Pathname.new(__FILE__).realpath)
10
+
11
+ require 'bundler/setup'
12
+
13
+ require 'webpacker'
14
+ require 'webpacker/webpack_runner'
15
+
16
+ APP_ROOT = File.expand_path('..', __dir__)
17
+ Dir.chdir(APP_ROOT) do
18
+ Webpacker::WebpackRunner.run(ARGV)
19
+ end
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'
5
+ ENV['NODE_ENV'] ||= 'development'
6
+
7
+ require 'pathname'
8
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
9
+ Pathname.new(__FILE__).realpath)
10
+
11
+ require 'bundler/setup'
12
+
13
+ require 'webpacker'
14
+ require 'webpacker/dev_server_runner'
15
+
16
+ APP_ROOT = File.expand_path('..', __dir__)
17
+ Dir.chdir(APP_ROOT) do
18
+ Webpacker::DevServerRunner.run(ARGV)
19
+ end
data/bin/yarn ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ APP_ROOT = File.expand_path('..', __dir__)
5
+ Dir.chdir(APP_ROOT) do
6
+ yarn = ENV['PATH'].split(File::PATH_SEPARATOR)
7
+ .reject { |dir| File.expand_path(dir) == __dir__ }
8
+ .product(['yarn', 'yarn.cmd', 'yarn.ps1'])
9
+ .map { |dir, file| File.expand_path(file, dir) }
10
+ .find { |file| File.executable?(file) }
11
+
12
+ if yarn
13
+ exec yarn, *ARGV
14
+ else
15
+ warn 'Yarn executable was not detected in the system.'
16
+ warn 'Download Yarn at https://yarnpkg.com/en/docs/install'
17
+ exit 1
18
+ end
19
+ end
data/config.ru ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is used by Rack-based servers to start the application.
4
+
5
+ require_relative 'config/environment'
6
+
7
+ run Rails.application
8
+ Rails.application.load_server
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'boot'
4
+ require 'rails'
5
+ require 'active_model/railtie'
6
+ require 'active_job/railtie'
7
+ require 'active_record/railtie'
8
+ require 'active_storage/engine'
9
+ require 'action_controller/railtie'
10
+ require 'action_mailer/railtie'
11
+ require 'action_mailbox/engine'
12
+ require 'action_text/engine'
13
+ require 'action_view/railtie'
14
+ require 'action_cable/engine'
15
+ require 'rails/test_unit/railtie'
16
+
17
+ Bundler.require(*Rails.groups)
18
+
19
+ module InteractiveRecord
20
+ # ActiveRecord-based database development environment.
21
+ class Application < Rails::Application
22
+ config.load_defaults 6.1
23
+ end
24
+ end
data/config/boot.rb ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
4
+
5
+ require 'bundler/setup' # Set up gems listed in the Gemfile.
6
+ require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
data/config/cable.yml ADDED
@@ -0,0 +1,10 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: test
6
+
7
+ production:
8
+ adapter: redis
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: reactive_record_production
@@ -0,0 +1 @@
1
+ LKH2UBTQDQf++k+WXgNK0quD2wP7AFVS18ehZD+tEK2USJ6lncLxLbB3OnE0lvSm0SM7/oF/r6NTdmrz/t+V/PAJGGRwZzr+y9xIFOymq9d7v5+8OsY7rhTGz8MsXsL+PhLVckQhxitp/fYDzMEWWxIATSUrguGwXJ1V/PrhEX0aCNbPoic8ORl8hhokXnKzHzVmS70zVubi5xqwficmiBXrq24JybnjocVk6LfrnvMwSwL0/buz2Ewwuv4uQNv2OEt1t63PvgE/QxEFY+aNMDrLDS4Jz6a2MMP0lRWg1PFvfFhl1Oh3L0f5sKRiL7Ej6/D8vkDTFnRjfa5xTJj2prELNhDO7c6s4lKUU/APvl7lLWCI/Hhj+jBBWrAdfzcYw5bvWOyTJ0vDjGL0WEANM45tsnv75NREPXAC--FYfHF6b+ZT3Njvm/--/a3vk3ww689Gsu8TcrFsug==
@@ -0,0 +1,25 @@
1
+ # SQLite. Versions 3.8.0 and up are supported.
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Load the Rails application.
4
+ require_relative 'application'
5
+
6
+ # Initialize the Rails application.
7
+ Rails.application.initialize!
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/integer/time'
4
+
5
+ Rails.application.configure do
6
+ # Settings specified here will take precedence over those in config/application.rb.
7
+
8
+ # In the development environment your application's code is reloaded any time
9
+ # it changes. This slows down response time but is perfect for development
10
+ # since you don't have to restart the web server when you make code changes.
11
+ config.cache_classes = false
12
+
13
+ # Do not eager load code on boot.
14
+ config.eager_load = false
15
+
16
+ # Show full error reports.
17
+ config.consider_all_requests_local = true
18
+
19
+ # Enable/disable caching. By default caching is disabled.
20
+ # Run rails dev:cache to toggle caching.
21
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
22
+ config.action_controller.perform_caching = true
23
+ config.action_controller.enable_fragment_cache_logging = true
24
+
25
+ config.cache_store = :memory_store
26
+ config.public_file_server.headers = {
27
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
28
+ }
29
+ else
30
+ config.action_controller.perform_caching = false
31
+
32
+ config.cache_store = :null_store
33
+ end
34
+
35
+ # Store uploaded files on the local file system (see config/storage.yml for options).
36
+ config.active_storage.service = :local
37
+
38
+ # Don't care if the mailer can't send.
39
+ config.action_mailer.raise_delivery_errors = false
40
+
41
+ config.action_mailer.perform_caching = false
42
+
43
+ # Print deprecation notices to the Rails logger.
44
+ config.active_support.deprecation = :log
45
+
46
+ # Raise exceptions for disallowed deprecations.
47
+ config.active_support.disallowed_deprecation = :raise
48
+
49
+ # Tell Active Support which deprecation messages to disallow.
50
+ config.active_support.disallowed_deprecation_warnings = []
51
+
52
+ # Raise an error on page load if there are pending migrations.
53
+ config.active_record.migration_error = :page_load
54
+
55
+ # Highlight code that triggered database queries in logs.
56
+ config.active_record.verbose_query_logs = true
57
+
58
+ # Raises error for missing translations.
59
+ # config.i18n.raise_on_missing_translations = true
60
+
61
+ # Annotate rendered view with file names.
62
+ # config.action_view.annotate_rendered_view_with_filenames = true
63
+
64
+ # Use an evented file watcher to asynchronously detect changes in source code,
65
+ # routes, locales, etc. This feature depends on the listen gem.
66
+ config.file_watcher = ActiveSupport::EventedFileUpdateChecker
67
+
68
+ # Uncomment if you wish to allow Action Cable access from any origin.
69
+ # config.action_cable.disable_request_forgery_protection = true
70
+ end
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/integer/time'
4
+
5
+ Rails.application.configure do
6
+ # Settings specified here will take precedence over those in config/application.rb.
7
+
8
+ # Code is not reloaded between requests.
9
+ config.cache_classes = true
10
+
11
+ # Eager load code on boot. This eager loads most of Rails and
12
+ # your application in memory, allowing both threaded web servers
13
+ # and those relying on copy on write to perform better.
14
+ # Rake tasks automatically ignore this option for performance.
15
+ config.eager_load = true
16
+
17
+ # Full error reports are disabled and caching is turned on.
18
+ config.consider_all_requests_local = false
19
+ config.action_controller.perform_caching = true
20
+
21
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
22
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
23
+ # config.require_master_key = true
24
+
25
+ # Disable serving static files from the `/public` folder by default since
26
+ # Apache or NGINX already handles this.
27
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
28
+
29
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
30
+ # config.asset_host = 'http://assets.example.com'
31
+
32
+ # Specifies the header that your server uses for sending files.
33
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
34
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
35
+
36
+ # Store uploaded files on the local file system (see config/storage.yml for options).
37
+ config.active_storage.service = :local
38
+
39
+ # Mount Action Cable outside main process or domain.
40
+ # config.action_cable.mount_path = nil
41
+ # config.action_cable.url = 'wss://example.com/cable'
42
+ # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
43
+
44
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
+ # config.force_ssl = true
46
+
47
+ # Include generic and useful information about system operation, but avoid logging too much
48
+ # information to avoid inadvertent exposure of personally identifiable information (PII).
49
+ config.log_level = :info
50
+
51
+ # Prepend all log lines with the following tags.
52
+ config.log_tags = [:request_id]
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Use a real queuing backend for Active Job (and separate queues per environment).
58
+ # config.active_job.queue_adapter = :resque
59
+ # config.active_job.queue_name_prefix = "reactive_record_production"
60
+
61
+ config.action_mailer.perform_caching = false
62
+
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+ # config.action_mailer.raise_delivery_errors = false
66
+
67
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+ # the I18n.default_locale when a translation cannot be found).
69
+ config.i18n.fallbacks = true
70
+
71
+ # Send deprecation notices to registered listeners.
72
+ config.active_support.deprecation = :notify
73
+
74
+ # Log disallowed deprecations.
75
+ config.active_support.disallowed_deprecation = :log
76
+
77
+ # Tell Active Support which deprecation messages to disallow.
78
+ config.active_support.disallowed_deprecation_warnings = []
79
+
80
+ # Use default logging formatter so that PID and timestamp are not suppressed.
81
+ config.log_formatter = ::Logger::Formatter.new
82
+
83
+ # Use a different logger for distributed setups.
84
+ # require "syslog/logger"
85
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
86
+
87
+ if ENV['RAILS_LOG_TO_STDOUT'].present?
88
+ logger = ActiveSupport::Logger.new($stdout)
89
+ logger.formatter = config.log_formatter
90
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
91
+ end
92
+
93
+ # Do not dump schema after migrations.
94
+ config.active_record.dump_schema_after_migration = false
95
+
96
+ # Inserts middleware to perform automatic connection switching.
97
+ # The `database_selector` hash is used to pass options to the DatabaseSelector
98
+ # middleware. The `delay` is used to determine how long to wait after a write
99
+ # to send a subsequent read to the primary.
100
+ #
101
+ # The `database_resolver` class is used by the middleware to determine which
102
+ # database is appropriate to use based on the time delay.
103
+ #
104
+ # The `database_resolver_context` class is used by the middleware to set
105
+ # timestamps for the last write to the primary. The resolver uses the context
106
+ # class timestamps to determine how long to wait before reading from the
107
+ # replica.
108
+ #
109
+ # By default Rails will store a last write timestamp in the session. The
110
+ # DatabaseSelector middleware is designed as such you can define your own
111
+ # strategy for connection switching and pass that into the middleware through
112
+ # these configuration options.
113
+ # config.active_record.database_selector = { delay: 2.seconds }
114
+ # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
115
+ # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
116
+ end
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/integer/time'
4
+
5
+ # The test environment is used exclusively to run your application's
6
+ # test suite. You never need to work with it otherwise. Remember that
7
+ # your test database is "scratch space" for the test suite and is wiped
8
+ # and recreated between test runs. Don't rely on the data there!
9
+
10
+ Rails.application.configure do
11
+ # Settings specified here will take precedence over those in config/application.rb.
12
+
13
+ config.cache_classes = false
14
+ config.action_view.cache_template_loading = true
15
+
16
+ # Do not eager load code on boot. This avoids loading your whole application
17
+ # just for the purpose of running a single test. If you are using a tool that
18
+ # preloads Rails for running tests, you may have to set it to true.
19
+ config.eager_load = false
20
+
21
+ # Configure public file server for tests with Cache-Control for performance.
22
+ config.public_file_server.enabled = true
23
+ config.public_file_server.headers = {
24
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
25
+ }
26
+
27
+ # Show full error reports and disable caching.
28
+ config.consider_all_requests_local = true
29
+ config.action_controller.perform_caching = false
30
+ config.cache_store = :null_store
31
+
32
+ # Raise exceptions instead of rendering exception templates.
33
+ config.action_dispatch.show_exceptions = false
34
+
35
+ # Disable request forgery protection in test environment.
36
+ config.action_controller.allow_forgery_protection = false
37
+
38
+ # Store uploaded files on the local file system in a temporary directory.
39
+ config.active_storage.service = :test
40
+
41
+ config.action_mailer.perform_caching = false
42
+
43
+ # Tell Action Mailer not to deliver emails to the real world.
44
+ # The :test delivery method accumulates sent emails in the
45
+ # ActionMailer::Base.deliveries array.
46
+ config.action_mailer.delivery_method = :test
47
+
48
+ # Print deprecation notices to the stderr.
49
+ config.active_support.deprecation = :stderr
50
+
51
+ # Raise exceptions for disallowed deprecations.
52
+ config.active_support.disallowed_deprecation = :raise
53
+
54
+ # Tell Active Support which deprecation messages to disallow.
55
+ config.active_support.disallowed_deprecation_warnings = []
56
+
57
+ # Raises error for missing translations.
58
+ # config.i18n.raise_on_missing_translations = true
59
+
60
+ # Annotate rendered view with file names.
61
+ # config.action_view.annotate_rendered_view_with_filenames = true
62
+ end