instance method
months
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
months()
No documentation comment.
Source
# File activesupport/lib/active_support/core_ext/float/time.rb, line 10
def months
::ActiveSupport::Deprecation.warn(self.class.deprecated_method_warning(:months, "Fractional months are not respected. Convert value to integer before calling #months."), caller)
months_without_deprecation
end
Defined in activesupport/lib/active_support/core_ext/float/time.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CoreExtensions::Float::Time