Improve the favorite/favoritable model:
authorMarius Mathiesen <marius@shortcut.no>
Thu, 26 Nov 2009 09:25:39 +0000 (10:25 +0100)
committerMarius Mathiesen <marius@shortcut.no>
Thu, 3 Dec 2009 13:18:57 +0000 (14:18 +0100)
commit0cee27f7c42ebe44f5601f78ba4b804709acfe82
tree664dc57f73f3b1c67aed5c66b57e368bcda9137e
parent9fa97f6449b9a6afa30e845b472d0fa4b2c37659
Improve the favorite/favoritable model:

- Validations
- Extract watchable logic into module
app/models/favorite.rb
app/models/repository.rb
app/models/user.rb
lib/watchable.rb [new file with mode: 0644]
test/fixtures/favorites.yml [new file with mode: 0644]
test/unit/favorite_test.rb