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
..
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-08-02 22:03:03 -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
2018-09-15 19:58:55 -05:00
2018-04-06 18:09:57 -07:00
2019-08-18 11:24:41 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-08-19 17:22:36 -05:00
2019-08-31 16:32:15 -05:00
2018-09-19 13:34:50 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-08-31 19:58:38 -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-06-23 11:15:14 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-08-25 20:29:32 -05:00
2019-08-18 11:24:42 -05:00
2018-11-08 15:09:31 -06:00
2019-08-25 21:06:16 -05:00
2018-04-06 18:09:57 -07:00
2018-11-08 15:09:31 -06:00
2018-04-06 18:09:57 -07:00
2018-05-05 14:00:49 -05:00
2018-05-05 14:00:58 -05:00
2018-04-06 18:09:57 -07:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-24 23:10:22 -05:00
2019-09-08 00:11:57 -05:00
2018-07-21 14:02:57 -07:00
2019-08-30 20:03:36 -05:00
2018-11-06 18:29:27 -06:00
2018-11-15 12:06:13 -08:00
2019-08-14 01:46:43 -05:00
2018-09-11 13:43:34 -07:00
2018-04-06 18:09:57 -07:00
2018-12-31 19:08:15 -06:00
2018-04-06 18:09:57 -07:00
2018-12-31 19:08:15 -06:00
2018-04-06 18:09:57 -07:00
2019-09-02 19:53:47 -05:00
2018-04-06 18:09:57 -07:00
2018-04-06 18:09:57 -07:00
2019-09-01 15:00:27 -05:00
2018-04-06 18:09:57 -07:00
2019-08-18 11:24:41 -05:00