diff options
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 |