Skip to content

Commit 3043147

Browse files
authored
Merge pull request #717 from lucasmartins1994/patch-1
complementary info about attribute aliases
2 parents 27fe47f + 012ec58 commit 3043147

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@ Named and aliased attributes can not be combined on the same line. This currentl
303303
attributes :foo, :bar => :baz # throws exception
304304
```
305305

306+
in such cases, you need to specify attributes twice.
307+
308+
```ruby
309+
attributes :foo
310+
attributes :bar => :baz
311+
```
312+
306313
### Child Nodes ###
307314

308315
Often a response requires including nested information from data associated with the parent model:

0 commit comments

Comments
 (0)