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