evazion
d0f060d8eb
api: refactor api attribute declarations.
...
Replace the `method_attributes` and `hidden_attributes` methods with
`api_attributes`. `api_attributes` can be used as a class macro:
# include only the given attributes.
api_attributes :id, :created_at, :creator_name, ...
# include all default attributes plus the `creator_name` method.
api_attributes including: [:creator_name]
or as an instance method:
def api_attributes
[:id, :created_at, :creator_name, ...]
end
By default, all attributes are included except for IP addresses and
tsvector columns.
2019-09-08 23:28:02 -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 23:28:02 -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-09-08 15:32:31 -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
2019-09-08 23:28:02 -05: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