Method: Time#plus_with_duration

Defined in:
lib/active_support/core_ext/time/calculations.rb

#plus_with_duration(other) ⇒ Object Also known as: +

:nodoc:



290
291
292
293
294
295
296
# File 'lib/active_support/core_ext/time/calculations.rb', line 290

def plus_with_duration(other) # :nodoc:
  if ActiveSupport::Duration === other
    other.since(self)
  else
    plus_without_duration(other)
  end
end