diff options
author | Zachary Scott <e@zzak.io> | 2015-06-18 17:39:59 -0400 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2015-06-18 17:39:59 -0400 |
commit | 4d8abebf4eed8f4e31dc90818907e792b2c39a24 (patch) | |
tree | f4abeb58788e7b33dd5ed69ab379c0237de1ea44 /actionview/lib | |
parent | c3133f50bc7b09c945f6387f3a64539b75d3dbc9 (diff) | |
download | rails-4d8abebf4eed8f4e31dc90818907e792b2c39a24.tar.gz rails-4d8abebf4eed8f4e31dc90818907e792b2c39a24.tar.bz2 rails-4d8abebf4eed8f4e31dc90818907e792b2c39a24.zip |
Nitpick :nail_care: [ci skip]
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/date_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index 813eda08a3..98ef87e427 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -71,6 +71,7 @@ module ActionView # # With the <tt>scope</tt> you can define a custom scope for Rails lookup # the translation. + # # For example you can define the following in your locale (e.g. en.yml). # # datetime: @@ -83,7 +84,7 @@ module ActionView # See https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en.yml # for more examples. # - # Which then will result in the following: + # Which will then result in the following: # # from_time = Time.now # distance_of_time_in_words(from_time, from_time + 50.minutes, scope: 'datetime.distance_in_words.short') # => 1 hr |