We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc08f0e commit 8c29719Copy full SHA for 8c29719
README.md
@@ -339,6 +339,7 @@ And it's also safe to mutate keys argument by doing keys.delete(:author)
339
in case you want to avoid creating two extra arrays. Note that if you do an
340
in-place modification, you still need to return the modified array.
341
342
+### Alias Attribute
343
If you would like the key in the outputted JSON to be different from its name
344
in ActiveRecord, you can declare the attribute with the different name
345
and redefine that method:
0 commit comments