Method: ActiveSupport::Duration#since

Defined in:
activesupport/lib/active_support/duration.rb

#since(time = ::Time.current) ⇒ Object Also known as: from_now, after

Calculates a new Time or Date that is as far in the future as this Duration represents.



436
437
438
# File 'activesupport/lib/active_support/duration.rb', line 436

def since(time = ::Time.current)
  sum(1, time)
end