evazion
3f7e05316d
api: refactor default options for xml responses.
...
In xml responses, if the result is an empty array we want the response
to look like this:
<posts type="array"/>
not like this (the default):
<nil-classes type="array"/>
This refactors controllers so that this is done automatically instead of
having to manually call `@things.to_xml(root: "things")` everywhere. We
do this by overriding the behavior of `respond_with` in `ApplicationResponder`
to set the `root` option by default in xml responses.
2019-09-08 15:32:31 -05:00
..
2019-08-29 00:51:52 -05:00
2018-04-06 18:09:57 -07:00
2019-09-01 15:00:23 -05:00
2019-08-29 00:51:52 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2018-10-12 21:18:15 -05:00
2019-09-08 15:32:31 -05:00
2019-08-22 00:09:50 -05:00
2018-05-09 11:59:51 -07:00
2019-08-24 23:10:22 -05:00
2019-08-19 17:22:36 -05:00
2019-09-08 15:32:31 -05:00
2019-08-29 00:51:52 -05:00
2018-04-06 18:09:57 -07:00
2019-09-08 15:32:31 -05:00
2017-07-19 16:48:42 -05:00
2018-04-06 18:09:57 -07:00
2019-09-08 15:32:31 -05:00
2019-08-31 19:58:38 -05:00
2018-04-26 15:31:06 -07:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2019-08-12 02:12:56 -05:00
2018-08-29 20:56:24 -07:00
2018-04-06 18:09:57 -07:00
2019-08-12 19:20:33 -05:00
2014-02-28 16:40:11 -08:00
2019-08-19 00:46:31 -05:00
2018-04-06 18:09:57 -07:00
2017-06-15 22:58:13 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2018-05-05 14:00:49 -05:00
2016-10-17 05:57:05 -05:00
2019-09-08 15:32:31 -05:00
2018-09-26 20:01:14 -05:00
2019-09-08 15:32:31 -05:00
2019-08-13 21:30:20 -05:00
2019-09-08 15:32:31 -05:00
2018-07-21 14:35:24 -07:00
2019-08-30 20:03:36 -05:00
2018-08-03 17:40:00 -07:00
2019-09-08 15:32:31 -05:00
2019-08-08 14:00:46 -05:00
2018-09-08 15:42:16 -05:00
2019-08-14 01:46:44 -05:00
2018-04-06 18:09:57 -07:00
2019-09-08 15:32:31 -05:00
2018-10-04 13:46:10 -05:00
2018-04-06 18:09:57 -07:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-08-29 00:51:52 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00
2019-09-08 15:32:31 -05:00