Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiedeziel committed Jan 7, 2015
1 parent 2e25fe9 commit 0451f8e
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 @@ -113,6 +113,13 @@ Product.first.specific
# => #<Pen ...>
```

If you have to come back to the parent object from the specific, the `acting_as` returns the parent element:

```Ruby
Pen.first.acting_as
# => #<Product ...>
```

In `has_many` case you can use subclasses:

```Ruby
Expand Down

0 comments on commit 0451f8e

Please sign in to comment.