Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request mbleigh#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 1ab5dc0 + 5000e09 commit 1dfd5ec
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 1dfd5ec

Please sign in to comment.