Method: ActiveSupport::Duration#from_now

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

#from_nowObject

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



439
440
441
# File 'activesupport/lib/active_support/duration.rb', line 439

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