bradphelan/rocket_tag — pull request #24 by fntzr (2012-07-08 14:37:35+00:00)
Title: add popularity methods for models

Hi.

I added method that returns a hash, where keys is the "tag" and value is the popularity of the current tag.
For example:

Model.new.tags = ["a", "b", "c"]
Model.new.tags = ["c", "b", "e"]
Model.new.tags = ["c", "a", "e"]
Model.tags_popularity #=> {"a" => 2, "b" => 2, "c" => 3, "e" => 2}