diff options
author | Dmitriy Kiriyenko <dmitriy.kiriyenko@anahoret.com> | 2012-04-30 10:11:34 +0300 |
---|---|---|
committer | Dmitriy Kiriyenko <dmitriy.kiriyenko@anahoret.com> | 2012-04-30 10:26:11 +0300 |
commit | 4a2d53a514f1b037bb68e7dde57d6aab74570d67 (patch) | |
tree | 6cc7723c54b9f8f1a216ddf69f9b1b9721f310c2 /guides | |
parent | 24f143789a8989f3bccde14ff28067de25cafd87 (diff) | |
download | rails-4a2d53a514f1b037bb68e7dde57d6aab74570d67.tar.gz rails-4a2d53a514f1b037bb68e7dde57d6aab74570d67.tar.bz2 rails-4a2d53a514f1b037bb68e7dde57d6aab74570d67.zip |
Replace boolean argument with an options hash.
This replaces `include_seconds` argument with an option key
`include_seconds => true` in options hash.
Also `time_ago_in_words` now passes options hash, including a `locale`
key, which makes in compatible with `distance_of_time_in_words`.
Diffstat (limited to 'guides')
-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 |