Created
March 3, 2012 12:11
-
-
Save anonymous/1965834 to your computer and use it in GitHub Desktop.
This file contains 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 messages(*params) | |
folder = params.select { |p| p.to_s == p }[0] || 'messages' | |
count = params.select { |p| p.to_i == p }[0] | |
Snooby.build Message, :messages, folder, count | |
end | |
def inbox(*params) | |
messages 'inbox', *params | |
end | |
def unread(*params) | |
messages 'unread', *params | |
end | |
def comment_replies(*params) | |
messages 'comments', *params | |
end | |
def post_replies(*params) | |
messages 'selfreply', *params | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment