Skip to content

Commit

Permalink
Merge pull request #717 from lucasmartins1994/patch-1
Browse files Browse the repository at this point in the history
complementary info about attribute aliases
  • Loading branch information
nesquena authored Sep 21, 2018
2 parents 27fe47f + 012ec58 commit 3043147
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 3043147

Please sign in to comment.