class ActiveSupport::Duration::Scalar
def *(other)
def *(other) if Duration === other new_parts = other._parts.transform_values { |other_value| value * other_value } new_value = value * other.value Duration.new(new_value, new_parts, other.variable?) else calculate(:*, other) end end