Displaying 1 result from an estimated 1 matches for "minimum_valu".
Did you mean:
minimum_value
2006 Jan 11
0
Limit attributes written out by to_yaml
...39; ) do |out|
YAML.dump( item, out )
end
This dumps out all the field names and values which are stored in the
attributes hash. The output looks something like this:
- !ruby/object:Item
attributes:
image_height: ''''
maximum_value: ''''
minimum_value: ''''
item_id: 153
default_value: ''''
... many more fields
However I don''t want all these fields. How can I limit the YAML output
to just include the fields that I want?
I know that I can override to_yaml_properties to specify the fie...