mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
15 lines
No EOL
225 B
Ruby
15 lines
No EOL
225 B
Ruby
if RUBY_VERSION < "1.9.2"
|
|
require 'delorean'
|
|
|
|
class Timecop
|
|
def self.travel(t)
|
|
Delorean.time_travel_to t
|
|
end
|
|
|
|
def self.return
|
|
Delorean.back_to_the_present
|
|
end
|
|
end
|
|
else
|
|
require 'timecop'
|
|
end |