active_model_serializers/lib
Ben Woosley 251e33a0a1 Don't pluralize the CollectionSerializer#root for #json_key
One of three constituents is used to provide the
CollectionSerializer's #json_key:

1) the :root option - controlled by the caller
2) the #name of the first resource serializer - the root or
   underscored model name
3) the underscored #name of the resources object - generally
   equivalent to the underscored model name of #2

Of the three, only the latter 2 are out of the callers control, and
only the latter two are expected to be singular by default. Not
pluralizing the root gives the caller additional flexibility in
defining the desired root, whether conventionally plural,
unconventionally plural (e.g. objects_received:) or singular.
2016-01-12 09:32:43 -08:00
..
action_controller Add config.serializer_lookup_enabled that defaults true 2015-11-30 00:20:58 -06:00
active_model Don't pluralize the CollectionSerializer#root for #json_key 2016-01-12 09:32:43 -08:00
active_model_serializers Fix typo 2015-11-24 07:22:59 -08:00
generators/serializer fix description of USAGE 2015-12-01 08:54:27 +09:00
grape Grape formatter feature requested in #1258 2015-12-10 10:06:40 +00:00
active_model_serializers.rb Remove ActiveModelSerializers.silence_warnings dead code 2015-12-23 19:25:48 -02:00