Flowdock
method

compute_type

Importance_0
v3.0.9 - Show latest stable - 0 notes - Class: ActiveModel::Serializers::Xml::Serializer::Attribute
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 activemodel/lib/active_model/serializers/xml.rb, line 35
          def compute_type
            type = ActiveSupport::XmlMini::TYPE_NAMES[value.class.name]
            type ||= :string if value.respond_to?(:to_str)
            type ||= :yaml
            type
          end
Register or log in to add new notes.