Displaying 1 result from an estimated 1 matches for "attribute_cach".
Did you mean:
attribute_cache
2013 Mar 21
0
how to remove changed_attributes from yaml response
...$i-1]
$i += 1
wants.yaml { render :text => tb.to_yaml, :content_type =>
"application/x-yaml", :layout => layout}
Ouput:
--- ! ruby/object:Test
attributes:
build_1: "[5, 30.14]"
build_2: "[0, 12.0]"
build_3: "[1, 11.0]"
build_4: "[2, 11.0]"
attribute_cache: {}
changed_attributes:
build_1:
build_2:
build_3:
build_4:
I am getting the output with "changed_attributes" with empty values and
I don''t want to display the changed_attributes in Yaml.
Could anyone please help me to remove the changed_attributes data from
yaml response?...