Permalink
Browse files

Add documentation about tagged_with owned_by feature introduced by #138.

  • Loading branch information...
1 parent 53e2e14 commit c5b61319d1f0596ee461b15e3cb2a51d99941c7e @ciastek ciastek committed Sep 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.rdoc
View
@@ -155,6 +155,7 @@ Tags can have owners:
@some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations)
@some_user.owned_taggings
@some_user.owned_tags
+ Photo.tagged_with("paris", :on => :locations, :owned_by => @some_user)
@some_photo.locations_from(@some_user) # => ["paris", "normandy"]
@some_photo.owner_tags_on(@some_user, :locations) # => [#<ActsAsTaggableOn::Tag id: 1, name: "paris">...]
@some_photo.owner_tags_on(nil, :locations) # => Ownerships equivalent to saying @some_photo.locations

0 comments on commit c5b6131

Please sign in to comment.