3.days.ago, 2.hours.from_now etc without Rails?

前端 未结 3 733
天命终不由人
天命终不由人 2021-02-11 18:42

Some book mentioned some gem to decorate numbers with #days, #megabytes, #minutes etc. Is this only in ActiveSupport, or is there a smalle

3条回答
  •  余生分开走
    2021-02-11 19:17

    ActiveSupport has this functionality. It was originally part of Rails but can now be used separately.

提交回复
热议问题