Flowdock
method

compute_type

Importance_0
compute_type() protected

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/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
Register or log in to add new notes.