method
compute_type
compute_type()
protected
Hide source
# File activerecord/lib/active_record/serializers/xml_serializer.rb, line 307 def compute_type type = @record.class.serialized_attributes.has_key?(name) ? :yaml : @record.class.columns_hash[name].type case type when :text :string when :time :datetime else type end end