|
42 | 42 |
|
43 | 43 | # Mount Action Cable outside main process or domain. |
44 | 44 | # config.action_cable.mount_path = nil |
45 | | - # config.action_cable.url = 'wss://example.com/cable' |
46 | | - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] |
| 45 | + # config.action_cable.url = "wss://example.com/cable" |
| 46 | + # config.action_cable.allowed_request_origins = [ "http://example.com", /http:\/\/example.*/ ] |
47 | 47 |
|
48 | 48 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. |
49 | 49 | config.force_ssl = true |
|
72 | 72 | # the I18n.default_locale when a translation cannot be found). |
73 | 73 | config.i18n.fallbacks = true |
74 | 74 |
|
75 | | - # Send deprecation notices to registered listeners. |
76 | | - config.active_support.deprecation = :notify |
77 | | - |
78 | | - # Log disallowed deprecations. |
79 | | - config.active_support.disallowed_deprecation = :log |
80 | | - |
81 | | - # Tell Active Support which deprecation messages to disallow. |
82 | | - config.active_support.disallowed_deprecation_warnings = [] |
| 75 | + # Don't log any deprecations. |
| 76 | + config.active_support.report_deprecations = false |
83 | 77 |
|
84 | 78 | # Use default logging formatter so that PID and timestamp are not suppressed. |
85 | 79 | config.log_formatter = ::Logger::Formatter.new |
|
97 | 91 | # Do not dump schema after migrations. |
98 | 92 | config.active_record.dump_schema_after_migration = false |
99 | 93 |
|
100 | | - # Inserts middleware to perform automatic connection switching. |
101 | | - # The `database_selector` hash is used to pass options to the DatabaseSelector |
102 | | - # middleware. The `delay` is used to determine how long to wait after a write |
103 | | - # to send a subsequent read to the primary. |
104 | | - # |
105 | | - # The `database_resolver` class is used by the middleware to determine which |
106 | | - # database is appropriate to use based on the time delay. |
107 | | - # |
108 | | - # The `database_resolver_context` class is used by the middleware to set |
109 | | - # timestamps for the last write to the primary. The resolver uses the context |
110 | | - # class timestamps to determine how long to wait before reading from the |
111 | | - # replica. |
112 | | - # |
113 | | - # By default Rails will store a last write timestamp in the session. The |
114 | | - # DatabaseSelector middleware is designed as such you can define your own |
115 | | - # strategy for connection switching and pass that into the middleware through |
116 | | - # these configuration options. |
117 | | - # config.active_record.database_selector = { delay: 2.seconds } |
118 | | - # config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver |
119 | | - # config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session |
120 | | - |
121 | 94 | # Redirect if not in correct domains |
122 | 95 | config.middleware.use Rack::HostRedirect, { |
123 | 96 | %w(coderdojo-japan.herokuapp.com www.coderdojo.jp) => 'coderdojo.jp' |
|
0 commit comments