Sha256: bfa4e8d96959f43cbba84dba4d5a95d25cfdd616ba98879952f0f0941aded7a4
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
require 'active_record/serializers/xml_serializer' ActiveRecord::XmlSerializer::Attribute.class_eval do def compute_type_with_translations if @serializable.class.translated_attribute_names.include?(name.to_sym) :string else compute_type_without_translations end end alias_method_chain :compute_type, :translations end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
globalize3-0.0.10 | lib/patches/active_record/xml_attribute_serializer.rb |
globalize3-0.0.9 | lib/patches/active_record/xml_attribute_serializer.rb |