method
first_hour
v5.1.7 -
Show latest stable
- Class:
DateAndTime::Calculations
first_hour(date_or_time)private
No documentation available.
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 324
def first_hour(date_or_time)
date_or_time.acts_like?(:time) ? date_or_time.beginning_of_day : date_or_time
end