Module: Globalize::XmlSerializer::Attribute
- Defined in:
- lib/patches/active_record/xml_attribute_serializer.rb
Instance Method Summary collapse
Instance Method Details
#compute_type ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/patches/active_record/xml_attribute_serializer.rb', line 9 def compute_type klass = @serializable.class if klass.translates? && klass.translated_attribute_names.include?(name.to_sym) :string else super end end |