mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #15961 from mckramer/patch-1
Rename options param of #time_ago_in_words to match API change
This commit is contained in:
commit
60e1aea9e6
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,8 @@ module ActionView
|
|||
#
|
||||
# Note that you cannot pass a <tt>Numeric</tt> value to <tt>time_ago_in_words</tt>.
|
||||
#
|
||||
def time_ago_in_words(from_time, include_seconds_or_options = {})
|
||||
distance_of_time_in_words(from_time, Time.now, include_seconds_or_options)
|
||||
def time_ago_in_words(from_time, options = {})
|
||||
distance_of_time_in_words(from_time, Time.now, options)
|
||||
end
|
||||
|
||||
alias_method :distance_of_time_in_words_to_now, :time_ago_in_words
|
||||
|
|
Loading…
Reference in a new issue