Closed ghost closed 10 years ago
i see the redundancy... but why remove it from the helper and not all the calls to document_by_id?
because i think it makes the intention of JSON converting clear. is it better to include to_json than to remove it with respect to duplication?
Agree. The one in the partial needs to go. Or, the helper name should be changed to suggest that it returns a JSON string and the other calls outside the helper can be removed then.
agree with both points. i sorta think renaming the helper and keeping the to_json there makes the most sense.
Yep. I just get rid off .to_json
. It works pretty well. May I close this issue?
A found document has been converted to JSON twice.