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 228
      def compute_type
        type = @serializable.class.serialized_attributes.has_key?(name) ?
          super : @serializable.class.columns_hash[name].type

        case type
        when :text
          :string
        when :time
          :datetime
        else
          type
        end
      end
Register or log in to add new notes.