gowalla/Likeable — pull request #2 by bemurphy (2011-11-12 07:31:52+00:00)
Title: Some cleanup, and rescue NameError on User for Likeable.setup

Did some minor cleanup and added a rake spec task.

I also got confused when I was playing with Likeable in a 1 page sinatra app, because the setup call was throwing a NameError since my User was defined after the setup. It seems kind of strange to me to necessitate the model be defined first, especially since the docs reference an explicit inclusion of Likeable::UserMethods.

As an aside, the auto-inclusion of the User model feels a little strange too, so that might be a candidate for more refactoring, or at least the docs should be more clear to that effect.