method
decorations
v3.2.13 -
Show latest stable
-
0 notes -
Class: ActiveModel::Serializers::Xml::Serializer::Attribute
decorations()
public
Hide source
# File activemodel/lib/active_model/serializers/xml.rb, line 29 def decorations decorations = {} decorations[:encoding] = 'base64' if type == :binary decorations[:type] = (type == :string) ? nil : type decorations[:nil] = true if value.nil? decorations end