Skip to content

Commit

Permalink
complementary info about attribute aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmartins1994 authored Sep 21, 2018
1 parent 27fe47f commit 012ec58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 012ec58

Please sign in to comment.