Skip to content

Commit

Permalink
Merge pull request mbleigh#175 from rromanchuk/patch-1
Browse files Browse the repository at this point in the history
Clarify ownership with a few more examples. RE: object.tags returning [] due to NULL in join
  • Loading branch information
Artem Kramarenko committed Sep 26, 2011
2 parents 4cd570b + 606fd87 commit 5872155
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.rdoc
Expand Up @@ -149,8 +149,10 @@ Tags can have owners:
@some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations) @some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations)
@some_user.owned_taggings @some_user.owned_taggings
@some_user.owned_tags @some_user.owned_tags
@some_photo.locations_from(@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

=== Tag cloud calculations === Tag cloud calculations


To construct tag clouds, the frequency of each tag needs to be calculated. To construct tag clouds, the frequency of each tag needs to be calculated.
Expand Down

0 comments on commit 5872155

Please sign in to comment.