Flowdock
method

cast_value

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: DateTime
cast_value(value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/type/date_time.rb, line 17
        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
Register or log in to add new notes.