lib/serega/attribute.rb in serega-0.18.0 vs lib/serega/attribute.rb in serega-0.19.0
- old
+ new
@@ -19,10 +19,14 @@
# Attribute :many option
# @return [Boolean, nil] Attribute :many option
attr_reader :many
+ # Attribute :default option
+ # @return [Object, nil] Attribute :default option
+ attr_reader :default
+
# Attribute :hide option
# @return [Boolean, nil] Attribute :hide option
attr_reader :hide
#
@@ -106,12 +110,13 @@
attr_reader :value_block
def set_normalized_vars(normalizer)
@name = normalizer.name
+ @many = normalizer.many
+ @default = normalizer.default
@value_block = normalizer.value_block
@hide = normalizer.hide
- @many = normalizer.many
@serializer = normalizer.serializer
end
end
extend Serega::SeregaHelpers::SerializerClassHelper