Skip to content

Commit

Permalink
Add X-With-Server-Date header support to migration env
Browse files Browse the repository at this point in the history
We need this to be able to test some of the declaration scenarios.
  • Loading branch information
ethax-ross committed Jun 7, 2024
1 parent bf60d70 commit 5ac64f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
Rails.application.configure do
config.log_level = :debug
config.ssl_options = { redirect: { exclude: ->(request) { request.path.include?("/check") } } }

# Used to handle HTTP_X_WITH_SERVER_DATE header for server side datetime overwrite
config.middleware.use TimeTraveler
end

0 comments on commit 5ac64f8

Please sign in to comment.