method

cast_value

rails latest stable - Class: ActiveModel::Type::DateTime
cast_value(value)
private

No documentation available.

# File activemodel/lib/active_model/type/date_time.rb, line 54
        def cast_value(value)
          return apply_seconds_precision(value) unless value.is_a?(::String)
          return if value.empty?

          fast_string_to_time(value) || fallback_string_to_time(value)
        end