diff options
author | José Valim <jose.valim@gmail.com> | 2012-04-30 00:38:57 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-04-30 00:38:57 -0700 |
commit | 81f6d7f2adb5347d3ce8e060e94dc94e42622875 (patch) | |
tree | 6280a4d2ae45304ef0c1fefd9709c1f2a76a73d5 /guides/source | |
parent | 64a54c3f9e01da5a86564de613191b03195a858c (diff) | |
parent | 4a2d53a514f1b037bb68e7dde57d6aab74570d67 (diff) | |
download | rails-81f6d7f2adb5347d3ce8e060e94dc94e42622875.tar.gz rails-81f6d7f2adb5347d3ce8e060e94dc94e42622875.tar.bz2 rails-81f6d7f2adb5347d3ce8e060e94dc94e42622875.zip |
Merge pull request #6077 from dmitriy-kiriyenko/improve_signature_of_time_in_words_helper
Replace boolean argument with an options hash.
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_view_overview.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_view_overview.textile b/guides/source/action_view_overview.textile index 6649974eea..fd1b6c5fc2 100644 --- a/guides/source/action_view_overview.textile +++ b/guides/source/action_view_overview.textile @@ -833,7 +833,7 @@ Reports the approximate distance in time between two Time or Date objects or int <ruby> distance_of_time_in_words(Time.now, Time.now + 15.seconds) # => less than a minute -distance_of_time_in_words(Time.now, Time.now + 15.seconds, true) # => less than 20 seconds +distance_of_time_in_words(Time.now, Time.now + 15.seconds, :include_seconds => true) # => less than 20 seconds </ruby> h5. select_date |