* Update gems * Update more gems * Update @rails/ujs package * Explicitly add sprockets-rails * Gemfile update * Run bin/rails app:setup * Update redis-actionpack * Update stats initializer autoloading * Update acts-as-taggable-on * Disable signed: true option in session store * Switch back to released version of redis-actionpack * Update Gemfile.lock * WIP * Update Rails and gems * Move hair_trigger back to released gem * Add explicit requires to initializers * Update Rails version * Add more explicit require_relative calls * Re-enable ForemStatsDriver * Update schema * Temp spec changes * Bullet started raising errors? * Fix broken spec * Temporarily disable hair_trigger_spec * Refactor * Fix spec * Enable use_rfc4122_namespaced_uuids * Revert "Enable use_rfc4122_namespaced_uuids" This reverts commit 5dac3722284bb08049586bfa943405f8a01289df. * Temporarily deploy to canary * Revert "Temporarily deploy to canary" This reverts commit 04f8469501fab2a3177450baf051ff6259c41827. * Update Containerfile * Add comments to specs Co-authored-by: Mac Siri <krairit.siri@gmail.com>
8 lines
449 B
Ruby
8 lines
449 B
Ruby
require_relative "../../app/lib/middlewares/set_cookie_domain"
|
|
require_relative "../../app/lib/middlewares/set_time_zone"
|
|
|
|
Rails.configuration.middleware.use(Middlewares::SetCookieDomain) if Rails.env.production?
|
|
|
|
# Include middleware to ensure timezone for browser requests for Capybara specs
|
|
# matches the random zonebie timezone set at the beginning of our spec run
|
|
Rails.configuration.middleware.use(Middlewares::SetTimeZone) if Rails.env.test?
|