diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-05-25 15:45:41 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-05-25 15:45:41 +0200 |
commit | 7a08b2c4c06448f8274b64e8e9cd0e93a350bc00 (patch) | |
tree | 6c6c29ce615e9b4c9e7851eea1b06249ec7a45e7 /activesupport | |
parent | d0a370ec93c7e1118f3f58effe2e64712d3492bd (diff) | |
parent | 2c725896b2ddab0cc9ee29ede1608d551efdf06c (diff) | |
download | rails-7a08b2c4c06448f8274b64e8e9cd0e93a350bc00.tar.gz rails-7a08b2c4c06448f8274b64e8e9cd0e93a350bc00.tar.bz2 rails-7a08b2c4c06448f8274b64e8e9cd0e93a350bc00.zip |
Merge pull request #20293 from davydovanton/doc-duration
Update documentation for Duration#to_s
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/duration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb index 4c0d1197fe..c63b61e97a 100644 --- a/activesupport/lib/active_support/duration.rb +++ b/activesupport/lib/active_support/duration.rb @@ -52,6 +52,10 @@ module ActiveSupport end end + # Returns the amount of seconds a duration covers as a string. + # For more information check to_i method. + # + # 1.day.to_s # => "86400" def to_s @value.to_s end |