Read or write global rails-timeago default options. If no options are given
the current defaults will be returned.
Available options:
- :nojs
- Add time ago in words as time tag content instead of absolute time.
(default: false)
- :date_only
- Only print date as tag content instead of full time. (default: true)
- :format
- A time format for localize method used to format static time. (default:
:default)
- :limit
- Set a limit for time ago tags. All dates before given limit will not be
converted. Global limit should be given as a block to reevaluate limit each
time timeago_tag is called. (default: proc { 4.days.ago })
- :force
- Force time ago tag ignoring limit option. (default: false)
- :default
- String that will be returned if time is nil. (default: ’-’)