From 012ec58c6dbde95d3eeee63de724bf4ea59fe0c3 Mon Sep 17 00:00:00 2001 From: lucasmartins1994 <32498264+lucasmartins1994@users.noreply.github.com> Date: Fri, 21 Sep 2018 15:46:23 -0300 Subject: [PATCH] complementary info about attribute aliases --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index bb51a7cf..f78027dc 100644 --- a/README.md +++ b/README.md @@ -303,6 +303,13 @@ Named and aliased attributes can not be combined on the same line. This currentl attributes :foo, :bar => :baz # throws exception ``` +in such cases, you need to specify attributes twice. + +```ruby +attributes :foo +attributes :bar => :baz +``` + ### Child Nodes ### Often a response requires including nested information from data associated with the parent model: