method
compute_type
compute_type()
protected
Hide source
# File activerecord/lib/active_record/serializers/xml_serializer.rb, line 181 def compute_type klass = @serializable.class column = klass.columns_hash[name] || Type::Value.new type = ActiveSupport::XmlMini::TYPE_NAMES[value.class.name] || column.type { :text => :string, :time => :datetime }[type] || type end