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