module Countrizable::XmlSerializer::Attribute

Public Instance Methods

compute_type() click to toggle source
Calls superclass method
# File lib/patches/active_record/xml_attribute_serializer.rb, line 9
def compute_type
  klass = @serializable.class
  if klass.country_attributes? && klass.country_attribute_names.include?(name.to_sym)
    :string
  else
    super
  end
end