method
convert_time_to_time_zone
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter
convert_time_to_time_zone(value)private
No documentation available.
# File activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb, line 36
def convert_time_to_time_zone(value)
return if value.nil?
if value.acts_like?(:time)
value.in_time_zone
elsif value.respond_to?(:infinite?) && value.infinite?
value
else
map_avoiding_infinite_recursion(value) { |v| convert_time_to_time_zone(v) }
end
end