bnb_blazer 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/overrides/controllers/blazer/base_controller_override.rb +133 -0
  3. data/app/views/{blazer → bnb_blazer}/_variables.html.haml +0 -0
  4. data/app/views/{blazer → bnb_blazer}/checks/_form.html.haml +0 -0
  5. data/app/views/{blazer → bnb_blazer}/checks/edit.html.haml +0 -0
  6. data/app/views/{blazer → bnb_blazer}/checks/index.html.haml +0 -0
  7. data/app/views/{blazer → bnb_blazer}/checks/new.html.haml +0 -0
  8. data/app/views/{blazer → bnb_blazer}/dashboards/_form.html.haml +0 -0
  9. data/app/views/{blazer → bnb_blazer}/dashboards/edit.html.haml +0 -0
  10. data/app/views/{blazer → bnb_blazer}/dashboards/new.html.haml +0 -0
  11. data/app/views/{blazer → bnb_blazer}/dashboards/show.html.haml +2 -2
  12. data/app/views/{blazer → bnb_blazer}/queries/_form.html.haml +0 -0
  13. data/app/views/{blazer → bnb_blazer}/queries/edit.html.haml +0 -0
  14. data/app/views/{blazer → bnb_blazer}/queries/home.html.haml +0 -0
  15. data/app/views/{blazer → bnb_blazer}/queries/new.html.haml +0 -0
  16. data/app/views/{blazer → bnb_blazer}/queries/run.html.haml +0 -0
  17. data/app/views/{blazer → bnb_blazer}/queries/show.html.haml +2 -2
  18. data/app/views/layouts/{blazer → bnb_blazer}/_footer.html.haml +0 -0
  19. data/app/views/layouts/{blazer → bnb_blazer}/_navbar.html.haml +0 -0
  20. data/app/views/layouts/{blazer → bnb_blazer}/application.html.haml +4 -4
  21. data/lib/bnb_blazer.rb +1 -0
  22. data/lib/bnb_blazer/engine.rb +5 -0
  23. data/lib/bnb_blazer/version.rb +1 -1
  24. metadata +22 -94
  25. data/.docker-development-vars +0 -1
  26. data/.gitignore +0 -34
  27. data/.rspec +0 -3
  28. data/.ruby-version +0 -1
  29. data/.travis.yml +0 -6
  30. data/Gemfile +0 -54
  31. data/Gemfile.lock +0 -233
  32. data/LICENSE.txt +0 -21
  33. data/README.md +0 -35
  34. data/app/assets/config/manifest.js +0 -3
  35. data/app/assets/images/.keep +0 -0
  36. data/app/assets/images/bnb_intel_logo.png +0 -0
  37. data/app/assets/stylesheets/application.css +0 -83
  38. data/app/channels/application_cable/channel.rb +0 -4
  39. data/app/channels/application_cable/connection.rb +0 -4
  40. data/app/controllers/application_controller.rb +0 -2
  41. data/app/controllers/concerns/.keep +0 -0
  42. data/app/helpers/application_helper.rb +0 -2
  43. data/app/jobs/application_job.rb +0 -2
  44. data/app/mailers/application_mailer.rb +0 -4
  45. data/app/models/application_record.rb +0 -3
  46. data/app/models/concerns/.keep +0 -0
  47. data/app/models/user.rb +0 -2
  48. data/bin/bundle +0 -3
  49. data/bin/console +0 -14
  50. data/bin/rails +0 -9
  51. data/bin/rake +0 -9
  52. data/bin/setup +0 -36
  53. data/bin/spring +0 -17
  54. data/bin/update +0 -31
  55. data/bin/yarn +0 -11
  56. data/bnb_blazer.gemspec +0 -28
  57. data/config.ru +0 -5
  58. data/config/application.rb +0 -19
  59. data/config/blazer.yml +0 -79
  60. data/config/boot.rb +0 -4
  61. data/config/cable.yml +0 -10
  62. data/config/credentials.yml.enc +0 -1
  63. data/config/database.yml +0 -19
  64. data/config/environment.rb +0 -5
  65. data/config/environments/development.rb +0 -61
  66. data/config/environments/production.rb +0 -94
  67. data/config/environments/test.rb +0 -46
  68. data/config/initializers/application_controller_renderer.rb +0 -8
  69. data/config/initializers/assets.rb +0 -14
  70. data/config/initializers/backtrace_silencers.rb +0 -7
  71. data/config/initializers/content_security_policy.rb +0 -25
  72. data/config/initializers/cookies_serializer.rb +0 -5
  73. data/config/initializers/filter_parameter_logging.rb +0 -4
  74. data/config/initializers/inflections.rb +0 -16
  75. data/config/initializers/mime_types.rb +0 -4
  76. data/config/initializers/wrap_parameters.rb +0 -14
  77. data/config/locales/en.yml +0 -33
  78. data/config/puma.rb +0 -37
  79. data/config/routes.rb +0 -3
  80. data/config/spring.rb +0 -6
  81. data/config/storage.yml +0 -34
  82. data/db/migrate/20210309231658_install_blazer.rb +0 -47
  83. data/db/migrate/20210309231908_create_users.rb +0 -13
  84. data/db/schema.rb +0 -85
  85. data/db/seeds.rb +0 -45
  86. data/docker-compose.yml +0 -22
  87. data/lib/tasks/.keep +0 -0
  88. data/log/.keep +0 -0
  89. data/package.json +0 -5
  90. data/public/404.html +0 -67
  91. data/public/422.html +0 -67
  92. data/public/500.html +0 -66
  93. data/public/apple-touch-icon-precomposed.png +0 -0
  94. data/public/apple-touch-icon.png +0 -0
  95. data/public/favicon.ico +0 -0
  96. data/public/robots.txt +0 -1
  97. data/tmp/.keep +0 -0
  98. data/vendor/.keep +0 -0
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
File without changes
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
File without changes
data/app/models/user.rb DELETED
@@ -1,2 +0,0 @@
1
- class User < ApplicationRecord
2
- end
data/bin/bundle DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3
- load Gem.bin_path('bundler', 'bundle')
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "bnb_blazer"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/rails DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('../spring', __FILE__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- APP_PATH = File.expand_path('../config/application', __dir__)
8
- require_relative '../config/boot'
9
- require 'rails/commands'
data/bin/rake DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('../spring', __FILE__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- require_relative '../config/boot'
8
- require 'rake'
9
- Rake.application.run
data/bin/setup DELETED
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
- include FileUtils
4
-
5
- # path to your application root.
6
- APP_ROOT = File.expand_path('..', __dir__)
7
-
8
- def system!(*args)
9
- system(*args) || abort("\n== Command #{args} failed ==")
10
- end
11
-
12
- chdir APP_ROOT do
13
- # This script is a starting point to setup your application.
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
- # Install JavaScript dependencies if using Yarn
21
- # system('bin/yarn')
22
-
23
- # puts "\n== Copying sample files =="
24
- # unless File.exist?('config/database.yml')
25
- # cp 'config/database.yml.sample', 'config/database.yml'
26
- # end
27
-
28
- puts "\n== Preparing database =="
29
- system! 'bin/rails db:setup'
30
-
31
- puts "\n== Removing old logs and tempfiles =="
32
- system! 'bin/rails log:clear tmp:clear'
33
-
34
- puts "\n== Restarting application server =="
35
- system! 'bin/rails restart'
36
- end
data/bin/spring DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads Spring without using Bundler, in order to be fast.
4
- # It gets overwritten when you run the `spring binstub` command.
5
-
6
- unless defined?(Spring)
7
- require 'rubygems'
8
- require 'bundler'
9
-
10
- lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
11
- spring = lockfile.specs.detect { |spec| spec.name == 'spring' }
12
- if spring
13
- Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14
- gem 'spring', spring.version
15
- require 'spring/binstub'
16
- end
17
- end
data/bin/update DELETED
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
- include FileUtils
4
-
5
- # path to your application root.
6
- APP_ROOT = File.expand_path('..', __dir__)
7
-
8
- def system!(*args)
9
- system(*args) || abort("\n== Command #{args} failed ==")
10
- end
11
-
12
- chdir APP_ROOT do
13
- # This script is a way to update your development environment automatically.
14
- # Add necessary update steps to this file.
15
-
16
- puts '== Installing dependencies =='
17
- system! 'gem install bundler --conservative'
18
- system('bundle check') || system!('bundle install')
19
-
20
- # Install JavaScript dependencies if using Yarn
21
- # system('bin/yarn')
22
-
23
- puts "\n== Updating database =="
24
- system! 'bin/rails db:migrate'
25
-
26
- puts "\n== Removing old logs and tempfiles =="
27
- system! 'bin/rails log:clear tmp:clear'
28
-
29
- puts "\n== Restarting application server =="
30
- system! 'bin/rails restart'
31
- end
data/bin/yarn DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path('..', __dir__)
3
- Dir.chdir(APP_ROOT) do
4
- begin
5
- exec "yarnpkg", *ARGV
6
- rescue Errno::ENOENT
7
- $stderr.puts "Yarn executable was not detected in the system."
8
- $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
- exit 1
10
- end
11
- end
data/bnb_blazer.gemspec DELETED
@@ -1,28 +0,0 @@
1
- require_relative 'lib/bnb_blazer/version'
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = "bnb_blazer"
5
- spec.version = BnbBlazer::VERSION
6
- spec.authors = ["Joe"]
7
- spec.email = ["pickertjoe@gmail.com"]
8
-
9
- spec.summary = "Customized branding of the Blazer gem for BNB projects"
10
- spec.description = "Customized branding of the Blazer gem for BNB projects"
11
- spec.homepage = "https://github.com/brandnewbox/bnb_blazer"
12
- spec.license = "MIT"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
-
15
- spec.metadata["homepage_uri"] = spec.homepage
16
- spec.metadata["source_code_uri"] = "https://github.com/brandnewbox/bnb_blazer"
17
-
18
- spec.add_dependency "blazer", "~> 2.4"
19
-
20
- # Specify which files should be added to the gem when it is released.
21
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
- end
25
- spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
- spec.require_paths = ["lib"]
28
- end
data/config.ru DELETED
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'config/environment'
4
-
5
- run Rails.application
@@ -1,19 +0,0 @@
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 BnbBlazer
10
- class Application < Rails::Application
11
- # Initialize configuration defaults for originally generated Rails version.
12
- config.load_defaults 5.2
13
-
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration can go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded after loading
17
- # the framework and any gems in your application.
18
- end
19
- end
data/config/blazer.yml DELETED
@@ -1,79 +0,0 @@
1
- # see https://github.com/ankane/blazer for more info
2
-
3
- data_sources:
4
- main:
5
- url: <%= ENV["BLAZER_DATABASE_URL"] %>
6
-
7
- # statement timeout, in seconds
8
- # none by default
9
- # timeout: 15
10
-
11
- # caching settings
12
- # can greatly improve speed
13
- # off by default
14
- # cache:
15
- # mode: slow # or all
16
- # expires_in: 60 # min
17
- # slow_threshold: 15 # sec, only used in slow mode
18
-
19
- # wrap queries in a transaction for safety
20
- # not necessary if you use a read-only user
21
- # true by default
22
- # use_transaction: false
23
-
24
- smart_variables:
25
- # zone_id: "SELECT id, name FROM zones ORDER BY name ASC"
26
- # period: ["day", "week", "month"]
27
- # status: {0: "Active", 1: "Archived"}
28
-
29
- linked_columns:
30
- # user_id: "/admin/users/{value}"
31
-
32
- smart_columns:
33
- # user_id: "SELECT id, name FROM users WHERE id IN {value}"
34
-
35
- # create audits
36
- audit: true
37
-
38
- # change the time zone
39
- # time_zone: "Pacific Time (US & Canada)"
40
-
41
- # class name of the user model
42
- # user_class: User
43
-
44
- # method name for the current user
45
- # user_method: current_user
46
-
47
- # method name for the display name
48
- # user_name: name
49
-
50
- # custom before_action to use for auth
51
- # before_action_method: require_admin
52
-
53
- # email to send checks from
54
- # from_email: blazer@example.org
55
-
56
- # webhook for Slack
57
- # slack_webhook_url: <%= ENV["BLAZER_SLACK_WEBHOOK_URL"] %>
58
-
59
- check_schedules:
60
- - "1 day"
61
- - "1 hour"
62
- - "5 minutes"
63
-
64
- # enable anomaly detection
65
- # note: with trend, time series are sent to https://trendapi.org
66
- # anomaly_checks: trend / r
67
-
68
- # enable forecasting
69
- # note: with trend, time series are sent to https://trendapi.org
70
- # forecasting: trend / prophet
71
-
72
- # enable map
73
- # mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>
74
-
75
- # enable uploads
76
- # uploads:
77
- # url: <%= ENV["BLAZER_UPLOADS_URL"] %>
78
- # schema: uploads
79
- # data_source: main
data/config/boot.rb DELETED
@@ -1,4 +0,0 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2
-
3
- require 'bundler/setup' # Set up gems listed in the Gemfile.
4
- require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
data/config/cable.yml DELETED
@@ -1,10 +0,0 @@
1
- development:
2
- adapter: async
3
-
4
- test:
5
- adapter: async
6
-
7
- production:
8
- adapter: redis
9
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
- channel_prefix: bnb_blazer_production
@@ -1 +0,0 @@
1
- ra2o7cXDbj47EzeLR0L9mMw4Ufh4P0TNYPV6sVapflfdG7LKi0NfgXYO6ibGw1uj3NK7YW3bUzSXSF/Ic5Lbcp3USlvBBDZDOlYX54K3Us1jIueNzL+xpFx5vghr0XY7oh9JQEAu4DEdYMI54XwZJq0kZwOCSgZEeK8NWI4iap8My9iDT5AXy7CN4Sd8aA+cvWiCaNNJ0lCrBbn5RXYL0aCSVn/KVhRl3X5X/TO9IywMbIqdAmaY3isNAbw5SVScmMfYfhqazbQ+afFCrZ6w8mfGTvYJHyKLDLfKf1YAuJUZHRqylSphRWK3N6FyxahDnr4v5HNCr/C0CTIo5GBCDHQneYOHMAVxyikTwNWmVLp0R8PEzgp4Lrs/sCE85hQ90RL86geEg4bttHld7j1pRZvfGWIsQnYKrPCc--lgUHcVJTdYiLftQd--pB/oDByF7wTRR6Zn1wKDzw==
data/config/database.yml DELETED
@@ -1,19 +0,0 @@
1
- default: &default
2
- adapter: postgresql
3
- encoding: unicode
4
- pool: 5
5
-
6
- development:
7
- <<: *default
8
- database: bnb_blazer_development
9
-
10
- # Warning: The database defined as "test" will be erased and
11
- # re-generated from your development database when you run "rake".
12
- # Do not set this db to the same as development or production.
13
- test:
14
- <<: *default
15
- database: bnb_blazer_test
16
-
17
- production:
18
- <<: *default
19
- database: bnb_blazer
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative 'application'
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,61 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports.
13
- config.consider_all_requests_local = true
14
-
15
- # Enable/disable caching. By default caching is disabled.
16
- # Run rails dev:cache to toggle caching.
17
- if Rails.root.join('tmp', 'caching-dev.txt').exist?
18
- config.action_controller.perform_caching = true
19
-
20
- config.cache_store = :memory_store
21
- config.public_file_server.headers = {
22
- 'Cache-Control' => "public, max-age=#{2.days.to_i}"
23
- }
24
- else
25
- config.action_controller.perform_caching = false
26
-
27
- config.cache_store = :null_store
28
- end
29
-
30
- # Store uploaded files on the local file system (see config/storage.yml for options)
31
- config.active_storage.service = :local
32
-
33
- # Don't care if the mailer can't send.
34
- config.action_mailer.raise_delivery_errors = false
35
-
36
- config.action_mailer.perform_caching = false
37
-
38
- # Print deprecation notices to the Rails logger.
39
- config.active_support.deprecation = :log
40
-
41
- # Raise an error on page load if there are pending migrations.
42
- config.active_record.migration_error = :page_load
43
-
44
- # Highlight code that triggered database queries in logs.
45
- config.active_record.verbose_query_logs = true
46
-
47
- # Debug mode disables concatenation and preprocessing of assets.
48
- # This option may cause significant delays in view rendering with a large
49
- # number of complex assets.
50
- config.assets.debug = true
51
-
52
- # Suppress logger output for asset requests.
53
- config.assets.quiet = true
54
-
55
- # Raises error for missing translations
56
- # config.action_view.raise_on_missing_translations = true
57
-
58
- # Use an evented file watcher to asynchronously detect changes in source code,
59
- # routes, locales, etc. This feature depends on the listen gem.
60
- config.file_watcher = ActiveSupport::EventedFileUpdateChecker
61
- end
@@ -1,94 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
18
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
19
- # config.require_master_key = true
20
-
21
- # Disable serving static files from the `/public` folder by default since
22
- # Apache or NGINX already handles this.
23
- config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
33
-
34
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
35
- # config.action_controller.asset_host = 'http://assets.example.com'
36
-
37
- # Specifies the header that your server uses for sending files.
38
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
39
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
40
-
41
- # Store uploaded files on the local file system (see config/storage.yml for options)
42
- config.active_storage.service = :local
43
-
44
- # Mount Action Cable outside main process or domain
45
- # config.action_cable.mount_path = nil
46
- # config.action_cable.url = 'wss://example.com/cable'
47
- # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
48
-
49
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
50
- # config.force_ssl = true
51
-
52
- # Use the lowest log level to ensure availability of diagnostic information
53
- # when problems arise.
54
- config.log_level = :debug
55
-
56
- # Prepend all log lines with the following tags.
57
- config.log_tags = [ :request_id ]
58
-
59
- # Use a different cache store in production.
60
- # config.cache_store = :mem_cache_store
61
-
62
- # Use a real queuing backend for Active Job (and separate queues per environment)
63
- # config.active_job.queue_adapter = :resque
64
- # config.active_job.queue_name_prefix = "bnb_blazer_#{Rails.env}"
65
-
66
- config.action_mailer.perform_caching = false
67
-
68
- # Ignore bad email addresses and do not raise email delivery errors.
69
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
70
- # config.action_mailer.raise_delivery_errors = false
71
-
72
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
73
- # the I18n.default_locale when a translation cannot be found).
74
- config.i18n.fallbacks = true
75
-
76
- # Send deprecation notices to registered listeners.
77
- config.active_support.deprecation = :notify
78
-
79
- # Use default logging formatter so that PID and timestamp are not suppressed.
80
- config.log_formatter = ::Logger::Formatter.new
81
-
82
- # Use a different logger for distributed setups.
83
- # require 'syslog/logger'
84
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
85
-
86
- if ENV["RAILS_LOG_TO_STDOUT"].present?
87
- logger = ActiveSupport::Logger.new(STDOUT)
88
- logger.formatter = config.log_formatter
89
- config.logger = ActiveSupport::TaggedLogging.new(logger)
90
- end
91
-
92
- # Do not dump schema after migrations.
93
- config.active_record.dump_schema_after_migration = false
94
- end