Flowdock
method

cast_value

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: Date
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 activerecord/lib/active_record/type/date.rb, line 22
      def cast_value(value)
        if value.is_a?(::String)
          return if value.empty?
          fast_string_to_date(value) || fallback_string_to_date(value)
        elsif value.respond_to?(:to_date)
          value.to_date
        else
          value
        end
      end
Register or log in to add new notes.