Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 259 Bytes

2022-03-19_require-active-support-from-irb.md

File metadata and controls

14 lines (10 loc) · 259 Bytes

require active support from irb

require 'active_support/all'

Useful for when I want to do date based additions/subtractions like: "what's the date in 25 days":

25.days.from_now

Source: https://stackoverflow.com/a/4239625/919641