months()
Returns a Duration instance matching the number of months provided.
2.months # => 2 months
# File activesupport/lib/active_support/core_ext/integer/time.rb, line 10 def months ActiveSupport::Duration.months(self) end