Created
March 4, 2012 22:06
-
-
Save vsavkin/1975036 to your computer and use it in GitHub Desktop.
Posts Repository
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
class PostsRepository | |
def find_by_id id | |
... | |
end | |
def new_posts_of_author author | |
... | |
end | |
def save post | |
... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment