Permalink
Browse files

Merge pull request #284 from ciastek/tagged-with-owned-by-doc

Add documentation about tagged_with owned_by feature introduced by #138.
  • Loading branch information...
2 parents cebde2b + c5b6131 commit 62f5fea1e19e4520a7bc8b65e0207aea11d4927f @artemk artemk committed Oct 10, 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 62f5fea

Please sign in to comment.