Created
August 16, 2013 02:40
-
-
Save descentintomael/6246800 to your computer and use it in GitHub Desktop.
What to add to your environment.rb to make rails server start in another time.
This file contains hidden or 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
days = ENV['TIMECOP_DAYS'].nil? ? 0 : ENV['TIMECOP_DAYS'].to_i | |
minutes = ENV['TIMECOP_MINUTES'].nil? ? 0 : ENV['TIMECOP_MINUTES'].to_i | |
Timecop.travel Time.now + days.days | |
Timecop.travel Time.now + minutes.minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment