# File lib/validates_timeliness/extensions/multiparameter_handler.rb, line 35 def read_time # If column is a :time (and not :date or :timestamp) there is no need to validate if # there are year/month/day fields if cast_type_or_column.type == :time # if the column is a time set the values to their defaults as January 1, 1970, but only if they're nil { 1 => 1970, 2 => 1, 3 => 1 }.each do |key,value| values[key] ||= value end end max_position = extract_max_param(6) set_values = values.values_at(*(1..max_position)) instantiate_time_object(set_values) end