Flowdock
method

type_cast_from_user

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: TimeZoneConverter
type_cast_from_user(value) public

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/attribute_methods/time_zone_conversion.rb, line 11
        def type_cast_from_user(value)
          if value.is_a?(Array)
            value.map { |v| type_cast_from_user(v) }
          elsif value.respond_to?(:in_time_zone)
            begin
              value.in_time_zone || super
            rescue ArgumentError
              nil
            end
          end
        end
Register or log in to add new notes.