Created
May 6, 2011 22:12
-
-
Save meltzerj/959894 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def notification_count(user) | |
| new_notifcation_count = new_notification_count || 0 | |
| new_notification_count = new_notification_count + user.notifications.count | |
| return new_notification_count | |
| end | |
| def erase_notification_count | |
| new_notification_count = current_user.notifications.count * (-1) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment