chebyte/mongoid-simple-tags — pull request #1 by HendrikLouw (2011-10-14 09:19:17+00:00)
Title: Scope fixes

Hi @chebyte,

Thank you for making the gem, it's really easy to use and the code is clean to read.
I needed to be able to find tags according to scopes.

In my example I have Clients that has_many Nodes. I needed to get the Node tag count similar to all_tags method but limited to Nodes that belong to a certain Client.

I've added unit tests to cover existing functionality and added the unit tests for the functionality I added. I'm currently using bundler to pull from this repository but would prefer to use the gem. Could you please check it out and advice whether the changes can go into the gem or not?

I used ruby 1.9.2-p290 from RVM to run the tests. I updated the mongoid dependency version, as earlier versions gave me problems with my version of mongodb.
To run the tests you should be able to cd to the root directory of the project and type the following comands:
bundle install ( to update the mongoid dependencies )
rake test ( to run tests, it should show you that everything passes )

Kind Regards
Hendrik