add likes and play count back to model...not sure how it got deleted

This commit is contained in:
Brian Smith 2014-02-19 20:06:40 -05:00
parent 238fba1fc3
commit f388f1c7e2
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,14 @@ module JamRuby
self.band_id = nil if self.band_id == ''
end
def like_count
self.likes.size
end
def play_count
self.plays.size
end
def comment_count
self.comments.size
end