/rails_travel.rb Secret
Last active
August 24, 2023 13:46
Travel in time in Rails production console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval(open("https://raw.githubusercontent.com/rails/rails/2a2a6ab6219b12e9e77931a60fe83c658db44ac7/activesupport/lib/active_support/testing/time_helpers.rb").read) | |
include ActiveSupport::Testing::TimeHelpers | |
travel_to(1.day.ago) { Time.current } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment