Closed zverok closed 8 years ago
Should be JSON-able, so return only simple types (strings, numbers, arrays, hashes and so on). Thing to consider:
country.capital
capital: "Buenos Aires"
capital: capital.to_h
(Is it sane?..)
Should be JSON-able, so return only simple types (strings, numbers, arrays, hashes and so on). Thing to consider:
country.capital
is not loaded, it renders to hash ascapital: "Buenos Aires"
;capital: capital.to_h
(Is it sane?..)