Skip to content

Commit

Permalink
Merge pull request #671 from AlexVPopov/patch-1
Browse files Browse the repository at this point in the history
Update README.md [ci skip]
  • Loading branch information
seuros committed Jul 28, 2015
2 parents e18de72 + 65a5e3b commit fd28222
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ Photo.tagged_with("paris", :on => :locations, :owned_by => @some_user)
@some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations, :skip_save => true) #won't save @some_photo object
```

Note that `tag_list` only returns tags whose taggings do not have an owner. Continuing from the above example:

```ruby
@some_photo.tag_list # => []
```

To retrieve all tags of an object (regardless of ownership) or if only one owner can tag the object, use `all_tags_list`.

### Dirty objects

```ruby
Expand Down

0 comments on commit fd28222

Please sign in to comment.