days is a method on the Numeric class in Rails, and it creates an instance of ActiveSupport::Duration with self passed to the constructor (this is a bit of a simplification, because it actually calls the class method days on Duration which converts the number of days into seconds before creating the Duration instance).
days
is a method on theNumeric
class in Rails, and it creates an instance ofActiveSupport::Duration
withself
passed to the constructor (this is a bit of a simplification, because it actually calls the class methoddays
onDuration
which converts the number of days into seconds before creating theDuration
instance).