diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb index fdde7db8090..08038ffa122 100644 --- a/activesupport/lib/active_support/duration.rb +++ b/activesupport/lib/active_support/duration.rb @@ -234,7 +234,10 @@ module ActiveSupport end end - # Returns a copy of the parts hash that defines the duration + # Returns a copy of the parts hash that defines the duration. + # + # 5.minutes.parts # => {:minutes=>5} + # 3.years.parts # => {:years=>3} def parts @parts.dup end